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
yarn
to install dependencies - Setup the postgres database:
createdb <your_database_name>
- In the root of the project, create
.env
file - Fill the
.env
file, example of the values can be copied from the.env.example
file (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 dev
command for dev environment oryarn start
for production build