Coder Social home page Coder Social logo

politico-v1's Introduction

Build Status

Coverage Status

Maintainability

Test Coverage

Politico

A voting application where politicians can show interest for a political office and user can vote for contestant

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You need to install the following dependencies:

Dependecies

  • express
  • babel-cli
  • babel-env
  • nodemon
  • body-parser
  • morgan
  • debug
  • eslint
  • mocha
  • chai
  • chai-http
  • pg
  • babel-polyfill
  • jsonwebtoken
  • bscriptjs

Development Dependencies

  • coveralls
  • cross-env
  • make-runnable
  • istanbul
  • mocha-lcov-reporter
  • nyc
npm install express --save

Installing

After successfully installing the dependencies all you need is to start your application to get your application running. to do that just run 'npm start' after you have navigated to the directory where you saved this application

npm start

If you possible make any changes, the application automatocally restarts itself

Running the tests

To run the test all you need is run "npm test" within the command line after navigating to that directory

npm test

Creating Database

The database used for this application is postgres. setup your postgres database and create you environment as contained in the sample.env file

  • To create the needed tables after setting up the application, run
npm  run migrate
  • To delete all the tables, run
npm  run drop
  • To create dummy data in your database after setting up the database and reated the tables, run
npm  run seeddb

politico-v1's People

Contributors

fantastic-genius avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.