Todo app built with Reactjs, Redux, Webpack, Node.js(Express.js), Sequelize.js, PostgreSQL and Passport.js
If you have not already installed, you need the following to run app locally...
- Node.js(v6.10.3)
- PostgreSQL / MySQL / SQLite
- npm / yarn
Sequelize Config
Create config/config.json
in /server
directory. Add the following to connect to local development database.
{
"development": {
"username": <db-username>,
"password": null,
"database": "react_redux_todo",
"host": "127.0.0.1",
"dialect": <local-db>
},
"test": {
"username": "root",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"dialect": "mysql"
},
"production": {
"username": "root",
"password": null,
"database": "database_production",
"host": "127.0.0.1",
"dialect": "mysql"
}
}
Session Config
Create config/session.json
in /server
directory and add the following to create a user session cookie...
{
"secret": "mysecretkey",
}
- Run
npm install
to install depenencies. - Create local DB
react_redux_todo
. - Run
npm start
to start application. - Navigate to
http://localhost:3001
.
- Refactor
LoginComponent
andRegisterComponent
functionality to single parent. - Fix error on refresh
/login
and/register
routes. - Add styles
NotFoundComponent
- Add
Jest
front-end unit tests andSupertest
back-end API endpoint tests.