Skip to content

luojxxx/Social-Network

Repository files navigation

Geddit - Online Community

##Repo Structure

  • The top level folder contains all the backend files. This is to facilitate Github integration with Heroku or AWS.
  • One of the top level folders is the frontend folder. This contains all the frontend source code.

##Run your own copy

  1. Download/clone repo
  2. Using command line interface (CLI) from top-level folder run: npm install
  3. The backend will require these environment variables:
  • STAGE (either 'development' to report errors or anything else to not)
  • OAUTH_SERVER_CALLBACK_URL (the server's hostname like http://localhost:3000)
  • OAUTH_CLIENT_CALLBACK_URL (the frontend's hostname like http://localhost:3001)
  • GOOGLE_CLIENT_ID (google api client ID)
  • GOOGLE_CLIENT_SECRET (google api client secret)
  • DATABASE_STRING (the database connection string)
  • EXPRESS_SESSIONS_SECRET (some secret string)
  • CORS (the url of the frontend)
  1. Then run nodemon to start running the server locally (if nodemon isn't installed, follow instructions here nodemon)
  2. Now in a new CLI, navigate to frontend folder and run: npm install
  3. Then while in the frontend folder, run either:
  • npm run start to run the frontend locally
  • npm run build to generate the bundled html, css, and javascript to deploy online

About

A reddit/twitter hybrid for prototyping an online community. Built with React, Redux, Node.js, Express, Mongoose, Mongodb, Heroku, and AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published