Skip to content

Simple Todo Web Application built using React/Node/Postgres

License

Notifications You must be signed in to change notification settings

tamzidcs/simple-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Todo

Simple Todo web application using React, Node, Express and Postgres.

Pre-Installation:

Create .env.development and .env.test file inside the server folder. Follow the template bellow and replace with appropriate values. Add seperate database(DB_NAME) for development and test.

  DB_NAME=xxx
  DB_HOST=xxx
  DB_USERNAME=xxx
  DB_PASSWORD=xxx
  DB_DIALECT='postgres'
  LOG_LEVEL='debug'

Installation:

Server:

  1. Install packages:
    npm install
  1. Run database script.
    npm run db
  1. Run the server:
    npm run dev

Client:

  1. Install packages:
    npm install
  1. Run the react app:
    npm start

Tests:

  1. Run test db script from the server folder.
    npm run db:test
  1. Run inside server or client folder to test them.
    npm run test