NodeJS REST API sample with integration Express, Sequelize
Open .env.sample file and edit the values and then
change file name .env.development or .env.production depending on your environment if you need to.
This project uses dotenv to read and use .env file
- Modular Routes
- Database integration using Sequelize V6
- JWT Token based Authentication
- Implementing File Uploads by multer
- Supported REST API Doc (Postman)
This project requires Node 14 or later.
1. yarn // install dependencies
2. yarn dev // run server
Create migration file using sequelize cli
npx sequelize-cli migration:generate --name <name>
yarn db:migrate
yarn db:sync
To run test, install jest
yarn test