Skip to content

joaohb07/book-tracker-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Tracker Challenge


Technologies Used

  1. Node.js
  2. MongoDB
  3. MongoDB atlas
  4. Express
  5. Docker

Installation

This app is built in Docker, make sure you have this installed before run it.

Clone main branch from my repo.

Usage

Access book-tracker-challenge folder:

cd book-tracker-challenge

How to run the app:

# builds the image-based container
docker build . -t user/node-web-app # tagging to identify the registry
# run on local port 3000
docker run -p 3000:3000 -d user/node-web-app
# output will be container id

Access your web browser in: http://localhost:3000/

To end container execution, copy the container id outputted by the docker run command and run the following:

# kill container execution
docker kill <container id>

If you want to make sure that the container execution stopped, run the following:

# curl locaalhost on app's port
curl -i localhost:3000

Output should be something like this:

curl: (7) Failed to connect to localhost port 3000 after 17 ms: Connection refused

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Book Tracker Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published