4. Running Server Using Express

Share the link to this page
Copied
  Completed

In full-stack development, you need a server. From the server, you start serving your web application. So in this module, you will learn how can you run a server in your own local machine using expressjs.

The 12-factor App

We must follow below 12 factors when we are developing full-stack web applications.

  1. Codebase one codebase tracked in revision control, many deploys
  2. Dependencies explicitly declare and isolate dependencies
  3. Config Store config in the environment
  4. Backing services Treat backing services as attached resources
  5. Build, release, run strictly separate build and run stages
  6. Processes Execute the app as one or more stateless processes
  7. Port binding Export services via port binding
  8. Concurrency scale out via the process model
  9. Disposability Maximize robustness with fast startup and graceful shutdown
  10. Dev/prod parity Keep development, staging, and production as similar as possible
  11. Logs Treat logs as event streams
  12. Admin processes run admin/management tasks as one-off processes

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.