run the command yarn && yarn start
. This will install all the dependencies and build the docker image
when you run yarn add PACKAGE
the package will be installed in docker as well automatically. However if you run into issues, you need to stop the server first with yarn stop
then you can run yarn build
to rebuild the docker image and start again.
⚠️ WARNING: This is a destructuve command that would delete the containers and all the data inside like database data, and uploads you can runyarn prune
to shutdown the server and delete all the volumes associated with it. This serves as a start fresh command, that will return your server environment to original. It will not affect your code changes though.
In this project folder, you will find:
- Express server setup in
/index.js
- The database connection is setup in
db/connection.js
- CORS is enabled and there's a test endpoint
/test
Now the rest is for you to build on your own 😁