Yan Flashcards
This project consists of two main parts: yan-web and yan-api.
yan-web: A React-based frontend application.yan-api: A NestJS-based backend application.
- Node.js (version 16.x or higher)
- pnpm (version 8.x or higher)
- Docker
-
Clone the repository:
git clone https://github.com/yan-english/yan-monorepo.git cd yan-monorepo -
Install dependencies for both
yan-webandyan-api:pnpm install
pnpm run web:dev-
Cd to yan-api folder and create a
.envfile in theyan-apidirectory with the content based on the.env.examplefile. -
Run docker compose file to start the depends servives such as the database and the caching:
docker compose up -d- Seed data to the database:
pnpm run init-data:seedAfter ran the seed data, we have the admin account with the following information:
email: admin@gmail.com
password: Admin@1234
- Start the API server:
pnpm run start:dev- See the API documentation at
http://localhost:3000/docs