If you have specific questions, shoot me a DM on Twitter: @NathanJLeRoy
I openly welcome contributions to SpottyData! The code can be messy at times as it was my first ever React project - so there is a lot to change and update. In addition, there are so many things I want to add; I can't do them all!
- Fork spottydata on github by clicking the Fork button in the upper right corner
- Clone the newly forked repo to your machine
- Navigate into the cloned repo
- Check the origin remote by running
git remote -v
- Set the upstream remote to spottydata by running
git remote add upstream https://github.com/NLeRoy917/spottydata.git
- Create a new branch to make your changes by running
git checkout -b BRANCH_NAME
- Make changes
- Push your changes to your fork
- Pull Request your fork when you are done adding your changes
Both the python api and the React frontend have specific environment variables that are omitted from this repo of course for security. Shoot me a message and I can get you the files necessary to access the application. 0. Both Python 3 and Node.js are requied for this application
- You will need a
.env
file at the root of the repository - You will need a
.env
file insideweb/
(That isweb/.env
) - You can choose to create a python virtual environment or not - this is optional
- Run
pip install -r requirements.txt
cd
intoweb/
and runyarn install
- From the root of the repository set an environment variable
FLASK_ENV=development
(Windows:set FLASK_ENV=development
, MacOS:export FLASK_ENV=development
) - Start the development API by running
python api.py
cd
intoweb/
- Install the node modules by running
yarn install
- Start the UI by running
yarn start
I don't really have any preference for coding paradigms, but I will ask that if you contribute to the frontend in any capacity please only use hooks and functional components for the react code.