codeex quiz platform backend system using Node.js
, Nest.js
, TypeScript
and mongo db
.
P.S: docker is required
- Clone the repo
git clone https://github.com/cs-fedy/codeex-quiz.git
- Change your current directory to the repo dir:
cd codeex-quiz
- make a
.env
file having thekey=value
pairs shown below. - Run
sudo docker compose -f docker-compose.prod.yml up -d
to start the db. - If not working with node as a container then install yarn:
np i -g yarn
- Install all the dependencies:
yarn install
- accessible in theapi
directory - Run the system in a dev env:
yarn run dev
- accessible in theapi
directory
- Node.js: Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- Nest.js: A progressive Node.js framework for building efficient, reliable and scalable server-side applications.
- TypeScript: TypeScript is JavaScript with syntax for types.
- Mongodb: MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need.
ENV=development
PORT=3001
MONGO_INITDB_ROOT_USERNAME=admin
MONGO_INITDB_ROOT_PASSWORD=admin
MONGODB_URL='mongodb://admin:admin@codeex-db:27017'
REDIS_PORT=6379
REDIS_HOST=codeex-cache
CLIENT_URL="http://localhost:5173"
BASE_URL="http://localhost:3001"
JWT_SECRET="A STROOOOOOOOOOOOOOOONG JWT secret"
JWT_ACCESS_EXPIRATION_MINUTES=30
JWT_REFRESH_EXPIRATION_DAYS=5