Git Product home page Git Product logo

router's Introduction

Welcome to CS411- group 4's repository. We developed a web application for searching restaurants and creating food journal for your traveling trips. Our members are listed below:

Member Major Graduation Year
Charles Thao Computer Engineering 2019
Shizhan Qi Computer Science 2019
Jay Park Computer Science 2018

Set up environment

To set up our application, you will need API keys for Yelp and Google Custom Search. You can easily register for these APIs https://www.yelp.com/developers for Yelp and https://developers.google.com/custom-search/docs/tutorial/creatingcse for Google Custom Search. For authentication, we used Auth0.

After getting your API credentials, open a terminal and follow these steps:

1. Clone the application

git clone https://github.com/thaorell/router

2. Set up config

cd router
mkdir config
cd config/
touch config.js

Use any text editor, edit config using this template:

var config = {
  // MongoDB

  db: {
    uri: MY_MONGO_URI,
    collections: ['COLLECTION1', 'COLLECTION2']
  },
  // Yelp Credentials
  yelp: {
    clientID: MY_YELP_CLIENT,
    apiKey: MY_YELP_API_KEY
  },
  // Google Credentials
  google:{
    cseID: MY_CSE_ID,
    apiKey: MY_GOOGLE_API_KEY
  },
  //Twitter Credentials
  twitter: {
    clientID: MY_TWITTER_CLIENT,
    clientSecret: MY_CLIENT_SECRET,
    callbackURL: '/api/auth/twitter/callback'
  },
  auth0: {
    clientID: MY_AUTH0_CLIENT,
    domain: MY_DOMAIN,
    responseType: 'token id_token',
    audience: MY_AUDIENCE,
    redirectUri: 'http://localhost:4200/callback',
    scope: 'openid profile'
  }
};

module.exports= config;

Remember to add http://localhost:4200/callback to the list of allowed callback in Auth0 settings.

3. Install and deploy

npm install
npm install nodemon -g
npm start

In your Internet browser, go to http://localhost:4200/

router's People

Contributors

thaorell avatar

Watchers

James Cloos avatar  avatar Yiran Pan 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.