Node.js backend template written in Typescript using express.js
- On your computer
- Installed yarn package manager
- Installed PostgreSQL
Once you have cloned the repo on your computer you can start configuring the backend application by following next steps:
- Navigate to the root of the project
- Run
yarnto install dependencies - Setup the postgres database:
createdb <your_database_name> - In the root of the project, create
.envfile - Fill the
.envfile, example of the values can be copied from the.env.examplefile (NOTE: All values should be filled) - Build the project
- Windows:
yarn windows:build - Mac/Linux:
yarn build
- Windows:
- Run migrations
- Windows:
yarn windows:migrate - Mac/Linux:
yarn migrate
- Windows:
- Run seeders
- Windows:
yarn windows:seed - Mac/Linux:
yarn seed
- Windows:
- After everything has been completed, to run the
app, use the
yarn devcommand for dev environment oryarn startfor production build