-
Clone this repository (main branch)
git clone https://github.com/mdepree5/cheatsheets.git
-
Install backend dependencies
pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt
-
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>'"
-
Create a .env file based on the example with proper settings for your development environment
-
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
-
Install frontend dependencies in react-app directory
cd ./react-app npm install
-
To run the React App in development run
npm start
fromreact-app
directorycd ./react-app npm start