A chingu collaborative full stack application that allows one to upload a pet and have users vote on the pet's cuteness (or lack thereof).
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.
Prerequisite | Version |
---|---|
Node.js / npm (comes with Node) | ~ ^8.9.5 / ~^5.6.0 |
yarn | ~ ^1.3.2 |
Git | ~ ^2 |
MongoDB Community Server | ~ ^3.4.9 |
Create a new directory and initialize git
mkdir cuteornot
$ cd cuteornot
$ git init
Pull from github and install packages
$ git pull https://github.com/chingu-voyage4/Bears-Team-23.git
$ yarn
$ cd client
$ yarn
$ cd ..
If using mongoDB locally see below to start the db (if using mlab skip this step)
$ mkdir data
$ mongod --port 27017 --dbpath=./data
create .env files
In the root of the project create a .env file with the following contents
CONSUMER_KEY=<Twitter Consumer Key>
CONSUMER_SECRET=<Twitter Consumer Secret>
MONGOLAB_URI=<mongoDB connection string>
COOKIE_KEY=<Cookie Secret Key>
GOOGLE_CLIENT_ID=<Google Client ID>
GOOGLE_CLIENT_SECRET=<Google Client Secret>
In the client folder of the project create a .env file with the following contents
REACT_APP_CLOUDINARY_CLOUD_NAME=<Cloudinary Cloud Name>
REACT_APP_CLOUDINARY_UPLOAD_PRESET=<Cloudinary Upload Preset>
Run development environment
$ yarn dev
The Browser should now open up with the application in development mode.
$ cd client
$ yarn test
see here for more testing details https://github.com/chingu-voyage4/Bears-Team-23/wiki/Creating,-running,-and-adding-automated-tests
https://github.com/chingu-voyage4/Bears-Team-23/wiki/Create-a-new-production-site
- MongoDB - Database
- Express - Node.js web application framework
- React - A JavaScript library for building user interfaces
- Node.js - JavaScript runtime
- Kevin Briggs - Project Manager / Coder - kevin578
- John Gillespie - Team Member / Coder - John Gillespie
- Chris Mayer - Team Member / Coder - Chris Mayer
- Dereje Getahun - Team Member / Coder - Dereje Getahun
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used
- Chingu - https://chingu.io/