This is template for backen express application. You can fork or clone this template.
Engine : Node >= v18.0
-
Install Dependency
npm install
-
Start DB
You can use db from docker in
compose.ymlor use your own db -
Create
envYou need to create an env file in the root. For example of the env you can look from
.env.example. The default env file name is.env.dev. -
Create Migrations
You need to run this migrations to create a sample db.
npm run migrations:dev:gen // Generate Migrations npm run migrations:dev:run // Apply Migration to DB
-
Run the development
To run the development env, you can run this bash command.
npm run local:dev:watch