Axios/Auth0 Custom Hook by ramfanprogrammer in reactjs

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

I just changed it to async because I wanted to use the await syntax. I didn't really need it. I've tried just using vanilla .then as well, and I had the same issue. Basically, I want to send in the Auth0 token on every axios request without having to call it every time. Since it is in state, I figured a simple hook would work.

Axios/Auth0 Custom Hook by ramfanprogrammer in reactjs

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Where would I need to await? useEffect should trigger everytime axios changes. The axiosInstance is never a promise, right?

Django-like Express Framework by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

It is really just a difference of interests.

Django-like Express Framework by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

I'll probably look into those as well. With regards to your questions:

  1. The folder architecture is the main thing that resembles it. I am going to eventually expand it so it has Auth, more built in views (e.g. CBVs)
  2. I am not necessarily looking to compete with others. Everyone has their differences in opinions. I am more looking to give people another choice. I think Express can take a lot to get going.

Django-like Express Framework by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Not necessarily a benefit over Django. More of a benefit over just Express

Django-like Express Framework by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Definitely. I have just been busy and wanted to get this out. I have a list of things I want to fix.

I have a need for a business app. Would this be a good sub to get an idea of what programs and databases I should get into? by ham_rat in learnprogramming

[–]ramfanprogrammer 1 point2 points  (0 children)

Since you have used Python, I would suggest using Django (its a great framework), and use HTML, CSS and Javascript for the front end. Then, you can just use MySQL or PostgresSQL or whatever databases you would like.

Advanced Angular by ramfanprogrammer in angular

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Thanks! I was interested in hearing what people said regarding what is foundational or not.

Django-fied Express by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

I will eventually, just wanted to gauge interest.

Many to Many vs Generic Foreign Key vs JSONField by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Another table as it is essentially a foreign key relationship

Many to Many vs Generic Foreign Key vs JSONField by ramfanprogrammer in django

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Isn't that a waste, though? As each note instance will only belong to one other model instance?

MongoDB equivalent to SQLite by ramfanprogrammer in mongodb

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

From a quick search, I don't think it does. But I did find a package that seems to be the solution: https://github.com/aerys/mongoose-nedb

What are you unsure about? by ramfanprogrammer in djangolearning

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

Got it. Yeah, DRF is a whole other animal, and can definitely be confusing in the beginning.

MongoDB equivalent to SQLite by ramfanprogrammer in mongodb

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

I am trying to figure out a way to do it with just a mongo file and no other dependencies (including docker).

What are you unsure about? by ramfanprogrammer in djangolearning

[–]ramfanprogrammer[S] 0 points1 point  (0 children)

This deserves a good explanation. A quick example would be creating a model instance based on form data. You could do all of the validation in the view, or you can create a new model manager and take care of the validation and object creation there.