🚀 Take Home Test from Benevity
- Node (install using nvm)
- Docker
- Docker Compose
- jenv
- nvm
- Set node version
nvm use npm install npm run prepare # setup pre-commit hooks
-
Run docker-compose to start MongoDB database
docker-compose up -d
-
Start up backend server:
cd server jenv local export MONGO_DB_DATABASE=test export MONGO_DB_CONNECTION_STRING=mongodb://localhost:27017 ./gradlew clean run
-
Start up client:
cd client nvm use npm start
-
Open browser and go to http://127.0.0.1:8000/signup
- Run cypress:
cd client nvm use npm run cypress:open
- Select E2E Testing
- Select Chrome
- Select Specs and run
- Error handling on client side for server errors.
- Handling authentication errors (e.g. token expired) on client side and redirect to user.