This is my implementation of the voting application, which is the 1st basejump on freecodecamp
In order to use the voting application, you must have the following installed:
To install the voting app, simply enter the below in the terminal window:
$ git clone https://github.com/paycoguy/voting-app.git your-project
This will install the voting app components into the your-project
directory.
Please follow this guide to register the application with GitHub and get API keys / secrets.
Create a file named .env
in the root directory. This file should contain:
GITHUB_KEY=your-client-id-here
GITHUB_SECRET=your-client-secret-here
MONGO_URI=mongodb://localhost:27017/clementinejs
PORT=8080
APP_URL=http://localhost:8080/
To start the app, make sure you're in the project directory and type node server.js
into the terminal. This will start the Node server and connect to MongoDB.
You should the following messages within the terminal window:
Node.js listening on port 8080...
Next, open your browser and enter http://localhost:8080/
. Congrats, you're up and running!
Features |
---|
MongoDB |
Express |
React |
Node.js |
Passport |
Mongoose |
Webpack |
MIT License. Click here for more information.