PeerPrep is a platform that allows its users to match with each other and give them the opportunity to work together on an algorithmic problem. In doing so, users can also simulate interviews by assuming the role of interviewer-interviewee, or work as a pair to solve a problem together.
The report for this assignment located at "docs/42-FinalReport.pdf"
.env
file for the backend, frontend, and serverless respectively# Enter question-service dir
cd serverless/question-service/functions
# Create .env following .env.example
# Install dependencies
yarn
# Uncomment the code below the "SEED" comment and start the emulator locally
# Take note of the summary and content endpoints
yarn serve
# In another terminal, run the script to seed the database with questions
./seed.sh <SUMMARY_ENDPOINT> <SLEEP_DURATION_IN_SECONDS>
./seed.sh <CONTENT_ENDPOINT> <SLEEP_DURATION_IN_SECONDS>
# Example: ./seed.sh "http://localhost:5001/proj/region/seedSummary" 10
# Example: ./seed.sh "http://localhost:5001/proj/region/seedContent" 10
# Install dependencies and build assets
yarn build
# Ensure that the backend and frontend has a .env
# Refer to Requirements step 3
# Run the application
yarn dev
# Clean up the application after stopping, flushes local Redis instance
yarn dev:rm