jimmylee / next-postgres-sequelize

[OUTDATED] React 16.8.4 + NextJS 8.0.3 + Emotion + Sequelize 5/Postgres + Passport Local Auth + Google App Engine or Heroku Deployment
https://next-postgres.herokuapp.com/
MIT License
181 stars 39 forks source link

Using with decoupled API? #11

Closed jimmiejackson414-zz closed 5 years ago

jimmiejackson414-zz commented 5 years ago

Hi there, wonderful library!

Apologies if this isn't a great place for this question, however I've pored over articles/SO/tutorials for awhile now and thought I'd give it a shot here!

I was wondering if you had any suggestions on implementing what you've created here with a decoupled API. In my repo I've got an 'api' folder which contains my Rails API for handling user authentication, but I know this library uses Express/Passport for user authentication. On my frontend I'm using Next.js and modeled my login after this repo.

Thank you!

jimmylee commented 5 years ago

@jimmiejackson414 hey! Thanks for stopping by 👋

To clarify... you would like to run two separate servers where:

Is that correct?

jimmiejackson414-zz commented 5 years ago

Thank you for your response, yes that's correct!

jimmylee commented 5 years ago

To get the development experience you want, the most beginner friendly & mainstream way is to use docker and docker-compose. In tandem they allow you to specify config for each of your services and run them simultaneously.

You would need to add a few config files to your project, and become familiar with new commands. Here is a medium post worth reading to get an idea of what you need to do.

This makes me think that it would be valuable to write a guide for running multiple services... If I end up getting some more spare time I may tackle this!

I hope this points you in the right direction. Good luck 🙏

jimmiejackson414-zz commented 5 years ago

Sounds great! Docker is definitely one of those buzzwords I always hear about but have never really given a shot yet. Thanks for your time.