Skip to content

tonyfosterdev/express-pt2-static-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Part 2 - Static Files

A basic example of Express.js.

Getting Started

  1. Clone the repository
# if you use SSH
~$ git clone [email protected]:tonyfosterdev/express-pt2-static-files.git
# if you use HTTPS
~$ git clone https://github.com/tonyfosterdev/express-pt2-static-files.git
  1. Navigate to application folder and install npm dependencies
~$ cd express-pt2-static-files
~/express-pt2-static-files$ npm install
  1. Start the application
~/express-pt2-static-files$ npm run start
  1. Optionally, build and run in a docker container
~/express-pt2-static-files$ docker build -t <docker-user-name>/express-pt2-static-files .
~/express-pt2-static-files$ docker run -p 3000:3000 -d <docker-user-name>/express-pt2-static-files

Demonstrate

When the application is running, navigate to http://localhost:3000 in a browser.

Credits

Photo by Anna Shvets from Pexels

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published