create-react-app + expressjs + mongodb + docker-compose!!
This starter application uses docker-compose to get the entire environment setup off of the ground.
The tech stack is:
-
create-react-app on the front-end
-
express API
-
Mongodb for database
If you don't have docker installed, install docker desktop.
From there, clone the repository into your workspace of choice.
Finally, make sure you are on public wifi and then run the following command from your favorite terminal:
docker-compose down && docker-compose build && docker-compose up
NOTE: The first build will be slow due to docker world-building
This will host your front end on localhost:3001
, your api endpoint on localhost:3002
, and mongodb will be networked internally (more details TBD). You can connect a
remote debugger to 0.0.0.0:56745
in order to debug the api.
The frontend and backend will auto-refresh as you make changes, and the only time you will ever need to re-run docker-compose down && docker-compose build && docker-compose up
is if you made changes to the package.json file in either ui or api.
- Add captcha: https://github.com/appleboy/react-recaptcha