OSU Winter 2021 Hackathon - Spaced Repetition Flashcard Site
Do the following commands at the top-level directory
python -m venv env
source env/bin/activate
orenv/scripts/activate
on Windowspython -m pip install -r requirements.txt
$ python -m pip install Django
$ python3
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
SECRET_KEY = get_random_string(50, chars)
print(SECRET_KEY)
exit()
- Open terminal
$ export SECRET_KEY='[value]'
(replacing [value] with the secret key you are using)
- In Search, search for and then select: Edit environment variables for your account
- In the User variables section, click New to open the New User Variable dialog box.
- Enter 'SECRET_KEY' and its value, and click OK. The variable is added to the User variables section of the Environment Variables dialog box.
- Click OK in the Environment Variables dialog box.
python -m pip freeze > requirements.txt
Go into the client directory and execute:
npm install
npm run start
development version of the app can then be accessed at:
localhost:3000