- Clone the repository
- Execute
npm installin the root directory of project - Create
.envfile in the root directory and add following vairable(s) :PORT = 4001// or which ever port you wanna use.JWT_KEY = <whatever 'string' you like or actually create a key, idk>
- Inside the
src/configfolder create a new fileconfig.jsonand then add the following json for DB configurations :
{
"development": {
"username": <DB_USERNAME>,
"password": <DB_PASSWORD>,
"database": <DB_NAME : "AUTH_DB_DEV">,
"host": "127.0.0.1",
"dialect": "mysql"
}
}
- Once you've aded your db config as listed above, go to
srcfolder from your terminal and executenpx sequelize db:createand then executenpx sequelize db:migrate - In the
srcdirectory itself executenpx sequelize db:seed:allto seed the data