Skip to content

Varstak/ay2324s1-course-assessment-g58

 
 

Repository files navigation

Review Assignment Due Date

PeerPrep

Getting Started with Docker for Development

  1. Install docker at https://www.docker.com/

  2. Start docker

  3. For frontend, ai-service, email-service, mongodb-database, user-service, there is an .env file that is required. Follow the respective README.md located in those folders.

  4. Run docker-compose up --build to build and run images and containers

Developer guide

As of the last update of this README, all backend services, frontend and gateway have been dockerized. A respective Dockerfile has been created within each of folders. This Dockerfile specifies the instructions in order to build the container, install the necessary node modules etc.

To simplify the container building, a docker-compose.yml has been created in order to start both containers at once. This is achieved through running docker-compose up --build to call all the dockerfiles.

Note that user-service requires a Supabase database and question-service requires a MongoDB database. The respective README.md should aid you in creating your own databases.

Also, the ai-service requires your own OpenAI key and email-service requires an SMTP_PASSWORD to run locally. For ease of testing, do so on peerprep.ryanchuahj.com, or contact the developers.

Finishing Development

When you are done with developing, kill the program (Ctrl^C) and run docker compose down. This cleans up local resources used by docker.

Note: For Mac users, this doesn't work and volumes will continue to pile up. Run docker system prune -a --volumes occasionally to remove the remaining volumes.

About

ay2324s1-course-assessment-g58 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.9%
  • Other 2.1%