Node server for the GuestBook application
Provides an interface by which the front end can interact with the database There are endpoints for getting, creating, updating, and deleting data in various tables
- user
- face/faces
- transcaction/transactions
- customer/customers
- user
- face
- transaction
- customer
- user
- customer
- user
- customer
- Download the repo
- Install dependencies using
npm install
- Run the server with
npm run start
The only system requireement is having Node installed.
Node can be easily installed with homebrew on a Mac with brew install node
- Open terminal
- Navigate to folder to clone the reop
- Clone with repo:
git clone https://github.com/OneCent01/GuestBookAPI
- Navigate into the root of the cloned repo
- Install dependencies found in the package.json using npm install
npm install
- Open terminal
- Navigate to the root directory of this repo
- Run the command to locally launch the server in your machine
npm run start
ORnode server.js
- Open a browser and type in the URL bar
localhost:3000
OR (URL endpoint at which it was deployed)
- Open the terminal
- Install the Heroku CLI
- On a Mac this is easily accomplished via Homebrew with:
brew tap heroku/brew && brew install heroku
- Navigate to the root of this repo in your local system
- Login to heroku
heroku login
- Create the endpoint to which this code will be uploaded
heroku create
- Push the code to the newly created endpoint:
git push heroku master
- In a browser, open the application at the assigned endpoint (you'll see it in the terminal after the previous command)
A deployed heroku instance of this app can be found here: https://limitless-bayou-46474.herokuapp.com/
/**
- Summary. (use period)
- Description. (use period)
- @param {let: type} Description.
- @param {[let: type]} Description of optional variable.
- @param {[let: type]=defaultValue} Description of optional variable with default variable.
- @param {let.key: type} Description of a key in the objectVar parameter.
- @return {type} Return value description. */