Cheatsheets Python Project

Getting started

  1. Clone this repository (main branch)

    git clone https://github.com/mdepree5/cheatsheets.git
  2. Install backend dependencies

    pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt
  3. Setup your PostgreSQL user, password and database and make sure it matches your .env file

    psql -c "CREATE USER <username> WITH PASSWORD '<password>' CREATEDB"
    psql -c "CREATE DATABASE <databasename> WITH OWNER '<username>'"
    
  4. Create a .env file based on the example with proper settings for your development environment

  5. Get into your pipenv, migrate your database, seed your database, and run your flask app

    pipenv shell
    flask db upgrade
    flask seed all
    flask run
  6. Install frontend dependencies in react-app directory

    cd ./react-app
    npm install
    
  7. To run the React App in development run npm start from react-app directory

    cd ./react-app
    npm start