Skip to content

chrisjmurphy96/sample-express-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-express-server

Just a basic template for an express server in Node.js.

Getting started

You will need Node.js installed before you can run this project. Latest stable can be found here: https://nodejs.org/en/

After Node.js is installed, navigate to the directory you cloned this project and do: npm install.

To run the project, use this command: node server.js.

In your preferred browser, go to: http://localhost:3000/

To reference files in index.html, drop them in the resources folder.

References

If you are interested in using certs and https: https://flaviocopes.com/express-https-self-signed-certificate/. This generated cert is self-signed so your browser will warn you that it could be dangerous.

For serving static resources, Express has a good guide: https://expressjs.com/en/starter/static-files.html.

About

Just a basic template for an express server in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •