Small web app using react and django-rest-framework. Records coordinates using browsers geolocation service. Saves locations in memory if not logged in. demo: https://geologger-client.herokuapp.com/
- clone repo
- create virtual env
- pip install
- cd server
- python manage.py migrate
- python manage.py runserver
DJANGO_SECRET_KEY
(set this for prod)PROD
(will turn debug off if set to any value)
- run
python manage.py test
- clone repo
- cd in project directory
- run yarn or npm install
- run yarn start or npm start
These must be set in webpack.prod file for the prod build process. Uses DefinePlugin.
API_BASE_URL
(the url of the api server, eg. 'http://localhost:8080/api/v1/'
- Uses
jest
andenzyme
. - Run
npm run test
to run tests. - Tests are either with their component or in top level tests directory