Skip to content

hnbnh/javascript-questions-api

Repository files navigation



JavaScript Questions API

Live Demo

Description

Unofficial API of javascript-questions, made with ❤️

Getting started

Install with docker-compose

  1. Create .env file (see .env.example)

  2. 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

Manual installation

  1. Clone this repo
  2. Run pnpm install or npm install or yarn to install dependencies
$ pnpm install
# or
$ npm install
  1. Prepare a postgres database, or create a new one with docker-compose
$ docker-compose -f docker-compose.db.yml up -d
  1. Migrate and seed the database
$ pnpm db:migrate
$ pnpm db:seed

# or
$ npm run db:migrate
$ npm run db:seed
  1. Create .env file (see .env.example)

  2. Start server

$ pnpm start:prod
# or
$ npm run start:prod

Support

Resources

Carbon JavaScript Logo

License

MIT licensed.