Repository for Learning Sequelize & JWT Auth
For sure, this is my learning repository. if you see the code is awkwkard, bad, or not practicing clean and good code. sorry for it. I just explore code and learn from a lot of resource without concerning about that.
I will improve this code to my next project, soon.
Its include : Sequelize, Migration, Seeder, JWT Auth, Setup Swagger
## Prerequisites
Before running the application, make sure you have the following installed on your machine:
- [Node.js](https://nodejs.org/)
- [npm](https://www.npmjs.com/) (Node Package Manager)
-
Clone this repository to your local machine:
git clone https://github.com/Hafizcode02/sequelize-api.git
-
Navigate to the project directory:
cd sequelize-api
-
Install the dependencies:
npm install
before starting running the application, set env file based on your needs:
NODE_ENV=
# Database Config
DB_DATABASE=
DB_HOST=
DB_USER=
DB_PASSWORD=
# Server Config
SERVER_ADDRESS=
SERVER_PORT=
CORS_PORT=
SECRET_KEY=
To start the Express.js server and run the file upload example, use the following command:
npm start db-init
npm start dev
You can see my postman collection in this repository