A basic example of Express.js.
- Clone the repository
# if you use SSH
~$ git clone [email protected]:tonyfosterdev/express-pt1-hello-world.git
# if you use HTTPS
~$ git clone https://github.com/tonyfosterdev/express-pt1-hello-world.git
- Navigate to application folder and install npm dependencies
~$ cd express-pt1-hello-world
~/express-pt1-hello-world$ npm install
- Start the application
~/express-pt1-hello-world$ npm run start
- Optionally, build and run in a docker container
~/express-pt1-hello-world$ docker build -t <docker-user-name>/express-pt1-hello-world .
~/express-pt1-hello-world$ docker run -p 3000:3000 -d <docker-user-name>/express-pt1-hello-world
When the application is running, navigate to http://localhost:3000
in a browser.