This was my first nodejs application, my purpose was to learn how to handle url endpoints and SQL connections. Four years later, I decided to make it work again.
Do not ignore node_modules
.
Do not save dependencies (there was no package.json
!).
Save passwords in the database connection file (they were local at least).
Do not have a setup or migrations for database.
Code in portuguese, instead of all english.
Useless comments.
Using raw promises instead of async/await.
- Ignore node_modules (rewrite the history).
- Save dependencies in
package.json
. - Use
.env
to handle sensitive info. - Configure containers to run the project with
docker-compose.yaml
. - Lint and format code.
- Delete comments.
- Use async/await.
Create a .env
file based on .env.example
with your own info and run:
npm install
npm start
Or run with Docker.
docker compose up
Project is licensed under MIT.