/t-to-do

Primary LanguagePython

T-To-Do: A simple to-do app with data persistence.

Getting started

  1. Clone this repository

    git clone https://github.com/rickynich/t-to-do.git
  2. Install dependencies:

    cd backend 
    pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt
  3. Create a .env file based on the .env.example file

  4. 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;
  1. 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
  2. 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