GithubHelp home page GithubHelp logo

mean-bears-api's Introduction

Development Notes

For all things heroku, go Getting Started with Node on Heroku

Run heroku login from cmd (cant from bash)

Run heroku open to get to landing page

Run heroku local -e .env.local to run a local server on port 5000

Use touch .env.local to create the file (if needed)

Run heroku open angular to see that specific route

Read through app.js to see all the node.js server routes

To push changes to the heroku server run git push heroku master

To push changes from a non-master branch, run git push heroku otherbranch:master

Make sure that the project is linked to the heroku remote repository with this command:

heroku git:remote -a <app-name>

Open add-ons with heroku addons:open papertrail (or mongod)

To edit configuration variables open .env.local (or use cmd line)

Test the api locally or remotely using postman

Alternatively, test api using browser https://<app-name>.herokuapp.com/api/bears

Running Locally

Make sure you have Node.js and the Heroku CLI installed.

$ git clone [email protected]:heroku/node-js-getting-started.git # or clone your own fork
$ cd node-js-getting-started
$ npm install
$ npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

mean-bears-api's People

Contributors

jsdelivrbot avatar oliveir7 avatar

Watchers

 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.