Nodejs 18
Docker + Docker Compose
[Yarn] npm i -g yarn
# 1. Enter your newly-cloned folder.
cd botv2-api
# 2. Create Environment variables file.
cp .env.example .env
# 3. Install dependencies. (Make sure yarn is installed: https://yarnpkg.com/lang/en/docs/install)
yarn
# 4. Run DB
docker compose up
# 4. Run development server and open http://localhost:3000
yarn watch:dev
# 5. Read the documentation linked below for "Setup and development".
yarn migration:generate ./src/database/migrations/{your migration name}
#Example
yarn migration:generate ./src/database/migrations/add-post-table
To build the App, run
yarn build:prod
And you will see the generated file in dist
that ready to be served.
This project includes a docs
folder with more details on: