Skip to content

A sample express environment that is well architected for scale. Read about it here:

License

Notifications You must be signed in to change notification settings

kelyvin/express-env-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Env Example

This is an express environment example that I wrote to demonstrate modular Express routing patterns. This environment enables easy extensibility, scalability, and proper software design practices.

03/13/2018 Update: An improved/advanced version of this architecture will be uploaded in the near future, be on the lookout.

Running

To start and run the project/server, simply run the following command in your root directory:

npm start

Sample endpoints

Views

  • / - Default route that redirects to the home page
  • /home - Render the home page sample
  • /home/info - Render the home page sample
  • /error - Render the error page sample

API

  • /api/v1/dogs - Get all dogs
  • /api/v1/dogs/:id - Get a dog with the specified id
  • /api/v2/animals/dogs - Get all dogs
  • /api/v2/animals/dogs/:id - Get a dog with the specified id

About

A sample express environment that is well architected for scale. Read about it here:

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published