saury1029 / express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

title description tags
ExpressJs server
An express server with common examples
http
nodejs
express
javascript
json

NodeJS Express Example

This example starts an Express JS server.

Deploy on Railway

πŸ’β€β™€οΈ How to use locally

  • Install dependencies npm install
  • Start the development server npm run dev

πŸ“ Notes

The server started returns a plaintext message for the / route and a json message for the /json route.

The main application code is located in index.js.

routes example folder

you should read the comments in the code to understand what is happening. check out the expressjs documentation for more information. also, if this is your first time doing express, you should read the files in the order listed below.

  • src contains the source code for the server
  • src/routes contains the routes for the server
  • src/routes/router_example.js contains examples pertaining to expressjs routers

About

License:MIT License


Languages

Language:JavaScript 100.0%