Please install the following applications/software before proceeding to use/evolve the project skeleton.
- Nodejs (and the npm that comes with it)
- nodemon
- create-react-app
- Any IDE of your choice
- Any Git client
- MongoDB Community Server
- MongoShell
- MongoDB Compass (Optional)
- Docker
- Copy
.env.examplefile as.env. - Update the relevant environment variables
- Install npm packages using
npm i. - Run User Service using
npm run dev.
- Copy
.env.examplefile as.env. - Update the relevant environment variables
- Install npm packages using
npm i. - Run
docker run -d -e POSTGRES_PASSWORD=root -p 5455:5432 postgres - Run
npx prisma migrate devto update data in db ornpx prisma migrate resetto reset db - Run User Service using
npm run dev.
- Copy
.env.examplefile as.env. - Update the relevant environment variables
- Install npm packages using
npm i. - Run User Service using
npm run dev.
- Copy
.env.examplefile as.env. - Update the relevant environment variables
- Install npm packages using
npm i. - Run
docker compose upto start redis - Run Collaboration Service using
npm run dev.
- Copy
.env.examplefile as.env. - Update the relevant environment variables
- Install npm packages using
npm i. - Run Question Service using
npm run dev.
- Copy
.env.examplefile as.env. - Update the relevant environment variables
- Install npm packages using
npm i. - Run History Service using
npm run dev.
- Install npm packages using
npm i. - Run Frontend using
npm start.
- Update all the relevant environment variables across all the services.
- Run docker compose up on the root of the project (this will start all the microservices except for frontend).
- Follow the instruction at Frontend to start the frontend service.
- Follow the instructions here to install docgen
- Export postman collection as Collection v2.1 to docs/peerdep-api directory
- Run
docgen build -i peerdep-api.postman_collection.json -o api-doc.md -mto generate documentation