Skip to content

OSU Winter 2021 Hackathon - Spaced Repetition Flashcard Site

Notifications You must be signed in to change notification settings

ckuchman/spaced-flashcard-site

Repository files navigation

spaced-flashcard-site

OSU Winter 2021 Hackathon - Spaced Repetition Flashcard Site


Backend Setup

Do the following commands at the top-level directory

  1. python -m venv env
  2. source env/bin/activate or env/scripts/activate on Windows
  3. python -m pip install -r requirements.txt

Setting SECRET_KEY environment variable

Generating secret keys

  1. $ python -m pip install Django
  2. $ python3
  3. from django.utils.crypto import get_random_string
  4. chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
  5. SECRET_KEY = get_random_string(50, chars)
  6. print(SECRET_KEY)
  7. exit()

Add SECRET_KEY environment variable

bash/zsh(macOS)

  1. Open terminal
  2. $ export SECRET_KEY='[value]' (replacing [value] with the secret key you are using)

Windows 8/10

  1. In Search, search for and then select: Edit environment variables for your account
  2. In the User variables section, click New to open the New User Variable dialog box.
  3. Enter 'SECRET_KEY' and its value, and click OK. The variable is added to the User variables section of the Environment Variables dialog box.
  4. Click OK in the Environment Variables dialog box.

Adding requirements

  1. python -m pip freeze > requirements.txt

Frontend Setup

Go into the client directory and execute:

  1. npm install
  2. npm run start

development version of the app can then be accessed at: localhost:3000


About

OSU Winter 2021 Hackathon - Spaced Repetition Flashcard Site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •