-
enter fronted
cd frontend -
Install dependencies
npm install
-
Run react app
npm start
-
To see if app is running open url http://localhost:3000/
For running this script you need some data from your Firebase project. Add this data to your ENVIRONMENT VARIABLES:
export PROJECT_ID=YOUR-FIREBASE-PROJECT-ID
export PRIVATE_KEY_ID=YOUR-FIREBASE-PRIVATE-KEY-ID
export PRIVATE_KEY=YOUR-FIREBASE-PRIVATE-KEY
export CLIENT_EMAIL=YOUR-FIREBASE-CLIENT-EMAIL
export CLIENT_ID=YOUR-FIREBASE-CLIENT-ID
export CLIENT_X509_CERT_URL=YOUR-FIREBASE-CLIENT-CLIENT_X509_CERT_URL- Install python dependencies
poetry install
- run main.py file
poetry run python main.py
- Migrate data:
python manage.py migrate
- Run django server
python manage.py runserver
- Create django superuser
python manage.py createsuperuser
- Open admin panel: open url http://localhost:8000/admin/
- From action select: 'send push notifications'
NOTE: there are two actions for sending push notifications. First one will send push notifications and users will see it. Second one will send push notifications on dry - users will not really see notifications - good for testing!