Skip to content

Ayanrocks/reactTodoApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo Logo

TODO APP

A simple tood App created with ReactJS

Tech Stack

  • Backend
    • Nodejs
    • ExpressJS
  • Frontend
    • React
    • Redux
    • Redux Thunk
  • Database
    • postgresql
  • Devops
    • Docker
Note -
- React-props types hasnt been implemented yet.
- Dependency list can be found in respective package.json files

How to run

The below command should run the app

$ node app.js

You need to start the database and create following tables. The same can be done with executing .sql files that are stored in database/postgres/.

Create a Db named todoApi and your user then run the following comand in psql console.

todoApi= CREATE TABLE buckets(
    id SERIAL PRIMARY KEY,
    name VARCHAR(20),
    created TIMESTAMP DEFAULT now()
);

todoApi= CREATE TABLE todos
(
    id SERIAL PRIMARY KEY,
    name VARCHAR(30),
    status VARCHAR(15),
    bucket INT,
    created TIMESTAMP DEFAULT now(),
    FOREIGN KEY (bucket) REFERENCES buckets(id)
);
# A default bucket needs to be created
todoApi= INSERT INTO buckets (name) VALUES ('default');

Docker

To avoid all these hassle and let docker take care of everything install docker on your machine.

Then Open a terminal and browse to project folder.

Switch to the docker branch of this repo.

$ docker-compose up --build

Docker should take care of everything.

Thanks For using this app. Feel free to contribute

About

A react Todo App with Nodejs and postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published