Skip to content

Asgedom-dev/Online-Book-Shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BAFE-Online-Book-Shop

Getting started

** To get to Node server running locally:

  • Clone the repo
  • npm install to install all dependencies
  • npm nodemon app.js or npm node app.js
  • run html

Code Overview

dependencies

expressjs - The server for handling and routing HTTP requests

jsonwebtoken - For generating JWTs used by authentication

cors - is a browser mechanism which enables controlled access to resources located outside of a given domain

Application Structure

  • app.js - The entry point to our application.
  • routes/ - This folder contains the route definitions for our API.
  • models/ - This folder contains the schema definitions for our --- models.
  • controllers/ - This folder controllers are the callback functions we passed to the router methods

Authentication

Requests are authenticated using the Authorization header with a valid JWT.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published