Skip to content

jz903/react-redux-voting-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-redux-voting-app

Voting management application built with React and Redux

Stack:

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

Installation:

  1. This application requires mongodb database. To install it, go to this link.
  2. After, you need install all dependencies using this command:
npm install
or
yarn install
  1. 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'
  1. Before running application, you should run mongodb database. In most cases it should be:
mongod --dbpath=data
  1. Next, you can run application:

In development mode:

npm start

In production mode:

npm run server

Npm commands:

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

About

Voting management application built with React and Redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published