QFlare is a platform that allows users to enhance their logic skills with quizzes. This repository contains the back-end of the QFlare platform.
- Clone the repository
git clone https://github.com/Capstone-Buddies/qflare-back-end.git
- Install dependencies
npm:
npm install
yarn:
yarn install
bun:
bun install
- Create a
.env
file in the root directory and add the following environment variables:
PORT=
MYSQL_DB_HOST=
MYSQL_DB_USER=
MYSQL_DB_PASSWORD=
MYSQL_DB_NAME=
JWT_SECRET=
ML_API_BASE_URL=
GCP_BUCKET_NAME=
GCP_PROJECT_ID=
GCP_KEYFILE_PATH=
- Run the database migrations
npm:
npm run migration:generate
npm run migrate:node
yarn:
yarn migration:generate
yarn migrate:node
bun:
bun migration:generate
bun migrate:bun
npm:
npm run dev:node
yarn:
yarn dev:node
bun:
bun dev:bun
The server will be running on http://localhost:3000
npm:
npm run build:node
yarn:
yarn build:node
bun:
bun build:bun