Skip to content

Project Restful API is built on the NodeJS platform. The main module which providing communication HTTP and supporting middlewares is ExpressJS.

License

Notifications You must be signed in to change notification settings

mateuszarchicinski/Restful-API--NodeJS-ExpressJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restful API - NodeJS & ExpressJS

Project Restful API is built on the NodeJS platform. The main module which providing communication HTTP and supporting middlewares is ExpressJS.

API in currently available configuration has:

  • settings file project.config.js which allows defining supported languages in routing and location of directory containing static files,
  • data file project.data.json,
  • defined host and port (http://localhost:4000),
  • enabled all Cross-Origin Resource Sharing (CORS) requests via cors middleware,
  • parser incoming request bodies before your handler start via body-parser middleware,
  • compressor response bodies for all request via compression middleware,
  • Normal and Angular modes of routing which handling all possible routes and allows to navigating through pages in different languages (/pl or /en).

Check out what exactly has changed in the latest version of the Restful API here.

Angular mod is related to my other project Angular 1.x - Template in which I use Restful API server-side to return main application file (index-pl.html or index-en.html) and the rest of routing takes place on client side.

Usage

Project is available only via Github repository.

In case usage app.js file in your own environment which provides automatic application run. Remember to install all required modules for proper work API. Use this command in console:

npm install --production

However, if you work with API locally install all modules using command:

npm install

It will install tool called Nodemon which will monitor for any changes in API source and automatically restart created server. Simply run using command:

nodemon app

Feel free to develop Project Restful API with me :)

Changelog

Recent changes can be viewed on Github on the Releases Page.

License

MIT License.

About

Project Restful API is built on the NodeJS platform. The main module which providing communication HTTP and supporting middlewares is ExpressJS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published