Code Monkey home page Code Monkey logo

bears-team-12's Introduction

Bears-Team-12

Communities | Voyage-7 | https://chingu.io/

Communities is a wiki type space for users to create subject related spaces for their related articles and knowledge.

To start this project locally:

Usage

Project requires MongoDB installed.

Go to https://console.developers.google.com/, create a project, enable the Google+ API, and obtain the ID and Secret credentials.

Go to https://developers.facebook.com, create an app, and obtain a Facebook Login ID and Secret.

Create a .env file in the server folder and save the following in the file:

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=http://localhost:3000/auth/google/callback
FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
FACEBOOK_CALLBACK_URL=http://localhost:3000/auth/facebook/callback

Setup a database connection in the server/knexfile.js file. By default it uses mysql, however, you can change it to use postgresql by uninstalling mysql with $ npm uninstall mysql, then install the node postgresql module with $ npm i pg.

Again, change your connection settings in server/knexfile.js, and make sure you replace mysql with pg.

You must install knex globally with $ npm i -g knex.

Then in your Terminal(s):

  • $ npm i in the server folder
  • $ npm i in the app folder
  • $ knex migrate:latest in the server folder
  • $ npm start in the server folder
  • $ npm start in the app folder

Congrats, your app should be up and running in the following URLs:

bears-team-12's People

Contributors

jordanleo7 avatar oxyrus avatar tropicalchancer avatar

Stargazers

Ryo Lambert avatar David Gaitsgory avatar  avatar

Watchers

James Cloos avatar  avatar  avatar David Gaitsgory avatar Zee Perez Canals 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.