Voting management application built with React and Redux
Package | Description |
---|---|
create-react-app |
Create React apps with no build configuration. |
redux |
Predictable state container for JavaScript apps |
react-router |
Routing library for React |
redux-thunk |
An alternative side effect model for Redux apps |
normalizr |
Normalizes nested JSON according to a schema |
reselect |
Selector library for Redux |
babel |
Compiler for writing next generation JavaScript |
- This application requires
mongodb
database. To install it, go to this link. - After, you need install all dependencies using this command:
npm install
or
yarn install
- Next, you should create config
.env
files:
MONGOLAB_URI='Place here postgres connection string like `mongodb://localhost:27017/react-redux-voting`'
GITHUB_CLIENT_ID='Place your github OAuth application's Client ID'
GITHUB_CLIENT_SECRECT='Place your github OAuth application's Client Secret'
GITHUB_CALLBACK_URL='Place your github OAuth application's Authorization callback URL'
- Before running application, you should run
mongodb
database. In most cases it should be:
mongod --dbpath=data
- Next, you can run application:
npm start
npm run server
Command | Description |
---|---|
npm install |
Install project dependencies and build files |
npm start |
Run server with webpack in development mode |
npm run server |
Run server in production mode |
npm run build |
Build client javascript file for production |
npm test |
Run tests in watch mode |
npm run test-all |
Run all test files |