Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.12 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.12 KB

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