Simple Todo web application using React, Node, Express and Postgres.
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'
- Install packages:
npm install
- Run database script.
npm run db
- Run the server:
npm run dev
- Install packages:
npm install
- Run the react app:
npm start
- Run test db script from the server folder.
npm run db:test
- Run inside server or client folder to test them.
npm run test