Giter Site home page Giter Site logo

vitalsine85 / my-heroku-api-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cashoefman/my-heroku-api-server

0.0 0.0 0.0 515 KB

How to setup a JSON REST API Server on Heroku

Home Page: https://cashoefman.com/how-to-setup-a-json-rest-api-server-on-heroku

JavaScript 100.00%

my-heroku-api-server's Introduction

My-Heroku-API-Server

Previously we created an online JSON API Server online and locally. This time we are going to do the same thing but we will be deploying it to Heroku instead.

The steps for this are fairly simple. First clone the repo below to your favorite project directory on your computer.

git clone https://github.com/cashoefman/my-heroku-api-server.git'

Like before you can now update the db.json file to your liking or just use the demo db.json that I provided to get started.

Next, if you do not already have one, you need to create an account on Heroku, it is free and create a new project on heroku.

In order to create the project you need to have the Heroku CLI. You can install it by following the instructions here. Or, if you have brew installed on a MAC it is easy, just run brew tap heroku/brew && brew install heroku.

Then we are ready to create the project on Heroku and deploy the code. In order to do so, in your project directory, run:

heroku create
git push heroku main

You can add a project name if you want (ie. heroku create casssupercooljsonapisever). It will take a few seconds to complete but, once it is done you can run heroku open and a browser window will magically appear and you are ready to start using your brand new JSON API Server!

Just like before, you can use postman to quickly test out your new API!

my-heroku-api-server's People

Contributors

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