T-To-Do: A simple to-do app with data persistence.
-
Clone this repository
git clone https://github.com/rickynich/t-to-do.git
-
Install dependencies:
cd backend
pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt
-
Create a .env file based on the .env.example file
-
Setup your PostgreSQL user, password and database and make sure it matches your .env file:
CREATE USER ttodo_app_dev WITH CREATEDB PASSWORD 'password';
CREATE DATABASE ttodo_app WITH OWNER ttodo_app_dev;
-
Get into your pipenv, migrate your database, seed your database, and run your flask app
pipenv shell
flask db upgrade
(This will also seed the database)
flask run
-
To run the React App in development, open up another terminal instance and cd to the
react-app
directory. Then run:npm install
npm start