GithubHelp home page GithubHelp logo

nodejs's Introduction

nodejs - express

ThisSite

Before you get started there are some really useful tools you can download!

  • very useful for validation
  • very useful for testing endpoints
  • the framework we are using to create our restful service
  • Allows you to refresh the nodejs app with out restarting it!!! (11/10) usefulness!!!!

little thing with example of how to use nodejs

What are Restful API's/ Restful Services

  • Systems can used a client/server arch, Client is FE, Server is BE to save data.
  • this uses HTTP protocol
  • Client can directly enteract with server via http and this is where REST comes into play.

REST - Representational State Transfer

  • We use simple http protocols to create, read, update and delete data (CRUD Operations)
  • example
  • this is an example of a company with a url(endpoint)

first part is the protocol, domain, can include api but it would be the directory what we would be using (the resource)

Standarad Http methods used to interact with server ---->

  • GET (getting data)
  • POST (creating data)
  • PUT (updating data)
  • DELETE (deleting data)

So as an example of a GET request ... Get Example

we can further this by specifying the data by including customer id such as this csu1

Similarly with PUT put

Overall the restful convenstion is this --- restful conv

After setting up your app you can upload it to git etc do what ever you want to save it.

we will be using Postgre SQL and heroku to host since they are free.

First make a heroku account its really ez. after you can link your REST API with heroku via --- heroku

and select an addon in resources and pick postgre sql

heroku addons:create heroku-postgresql:hobby-dev

heroku pg:credentials DATABASE
or
heroku pg:credentials:url

then when you get ur url and other detail for the db just link them together and you should get a heroku page dbpage

which then if you install postgre sql

you can get a sql CLI cli

and use it to upload tables, etc

Currently Hosted on ThisSite

nodejs's People

Contributors

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