https://github.com/rhw-repo/top-library-project
https://github.com/rhw-repo/top-library-project
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rhw-repo/top-library-project
- Owner: rhw-repo
- Created: 2024-07-26T15:23:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T13:57:14.000Z (9 months ago)
- Last Synced: 2025-02-04T15:29:06.423Z (4 months ago)
- Language: HTML
- Size: 34.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Odin Project Library Project
## Run this project using Docker
A simple static web app with DOMPurify via a pre-built minified script.
- Run this project with docker-compose from the project root directory:
docker compose build --no-cache
Next run:
docker compose up -d
Open a browser and visit:
To stop the container, run:
docker compose down
- Run this project as a single container from the project's root directory:
Create the Docker image by running:
docker build -t top-library-project .
Run the container on port 80:
docker run -d -p 80:80 top-library-project
Open a browser and visit:
To stop the running container run:
docker psThen pass the container id to the command:
docker stop
## This project uses
- JavaScript, HTML, CSS
- woff & woff2 self-hosted fonts
- DOMPurify via npm to sanitize input
- CSS BEM naming conventions
- JavaScript JSDoc comments
- Formatting with Prettier, linting with ESLint & markdownlint## Project Instructions
All of your book objects are going to be stored in an array, so add a function to the script (not the constructor) that can take user’s input and store the new book objects into an array.
For more information [click here to visit the project instructions webpage](https://www.theodinproject.com/lessons/node-path-javascript-library)