/react-postgres-todo

Simple todo example

Primary LanguageJavaScript

Todo

Simple todo made with react, tailwind, postgres, knex, etc.

React tabs component download

Installation

  1. Create a .env file in the server directory with this content
DB_HOST=localhost
DB_NAME=name
DB_USER=postgres
DB_PASSWORD=root
DB_PORT=5432
DATABASE_POOL_MIN=1
DATABASE_POOL_MAX=10

APP_PORT=5000
  1. Create a .env file in the client directory with this content
REACT_APP_BACKEND=http://localhost:5000
  1. npm install for /server and /client
  2. npm i knex -g for /server
  3. knex migrate:latest ----
  4. knex seed run ----
  5. npm run dev ----
  6. npm start for client