pisonpeakgroup / week16C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

week16C

The program/API has Four major modules;

  1. An route for configuring the application,
  2. A config for specifying the connection to the database,
  3. A server.js for spinning up the node server on a specific port of your choice. with some simple defined routes like get, post, delete, and put.
  4. And Package.json for carrying node package info.
  5. Then other folders and files carry the business logic of your program/API.

HOW I CREATEd this API

  1. create a folder
  2. create a package.json file into it.
  3. install npm modules 3b. install dependencies into it.
  4. create a READme File as seen here.
  5. create a server.js file
  6. create sub-folders: Config, Controllers, Models and Routes etc. 6a. All the configurations for the app GOES into Config's folder. 6b. All the Controllers for the app goes into Controller's folder 6c. All the Models for the app goes into Model's folder. 6d. All the Routes for the app goes into Route's folder. etc.

About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%