GithubHelp home page GithubHelp logo

streetmix-be's Introduction

Backend code for Streetmix

Development setup (on Mac OS X 10.8)

First-time setup

  1. Download and install Node.js.

    brew install nodejs

  2. Download, install and start MongoDB.

    brew install mongodb

  3. Download and install Coreutils.

    brew install coreutils

  4. Clone this repository to a folder on your computer. The rest of this document will refer to this folder as $PROJECT_ROOT.

  5. Install project dependencies.

    cd $PROJECT_ROOT npm install

Every time you sync $PROJECT_ROOT with the remote GitHub repo

  1. Update the project dependencies.

    cd $PROJECT_ROOT npm install

To start the REST API server

  1. Setup environment variables.
Variable name Description Required?
SENDGRID_USERNAME Your SendGrid username Yes
SENDGRID_PASSWORD Your SendGrid password Yes
TWITTER_OAUTH_CONSUMER_KEY Development Twitter OAuth consumer key, obtained from @streetmixapp Twitter account Yes
TWITTER_OAUTH_CONSUMER_SECRET Development Twitter OAuth consumer secret, obtained from @streetmixapp Twitter account Yes
PORT HTTP port for REST API server No; default = 8080
  1. Start the REST API server.

    cd $PROJECT_ROOT npm start

Project folder structure

$PROJECT_ROOT: Folder to which this repository was cloned.
config: Folder containing configuration files for the application.
models: Folder containing models that let the application communicate with the data store.
restapi: Folder containing code for the REST API server, resources and documentation.

streetmix-be's People

Contributors

mwichary avatar ycombinator avatar yesezra avatar

Watchers

 avatar  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.