A basic example of Express.js.
- 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
- Navigate to application folder and install npm dependencies
~$ cd express-pt2-static-files
~/express-pt2-static-files$ npm install
- Start the application
~/express-pt2-static-files$ npm run start
- 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
When the application is running, navigate to http://localhost:3000
in a browser.