Unofficial API of javascript-questions, made with ❤️
-
Create .env file (see .env.example)
-
Run the following commands:
docker-compose build
docker-compose up
docker exec -it nest-api npm run db:migrate
docker exec -it nest-api npm run db:seed
- Clone this repo
- Run
pnpm install
ornpm install
oryarn
to install dependencies
$ pnpm install
# or
$ npm install
- Prepare a postgres database, or create a new one with docker-compose
$ docker-compose -f docker-compose.db.yml up -d
- Migrate and seed the database
$ pnpm db:migrate
$ pnpm db:seed
# or
$ npm run db:migrate
$ npm run db:seed
-
Create .env file (see .env.example)
-
Start server
$ pnpm start:prod
# or
$ npm run start:prod
- Buy me a coffee
- BTC: 152Qsb3Dsds4t6PnAAYqQp9WRPSHRFZ5Hy