Skip to main contentBelow, you can see some useful commands to use when developing features for Dolphin Flashcards
Frontend Development
- Run the Frontend app
 
- Install all required packages
cd frontend 
npm install -g create-react-app 
npm install 
 
Backend Development
- Run the backend API
 
- Check the config files are correct (that they store the correct data for the production server)
python validate_config_files.py 
 
- Start the local database
bash firebase_emulator.sh 
 
- Stop the local database
docker stop $(docker ps -aq --filter "ancestor=mtlynch/firestore-emulator-docker") 
 
- Delete all data from the local database
curl -v -X DELETE "http://localhost:5000/emulator/v1/projects/dummy-project-id/databases/(default)/documents" 
 
- Run unit tests
bash testing/run_tests.sh 
 
Documentation Development
- Run a local server for testing how the documentation looks