"My books" is a website that displays a list of books and allows you to add and remove books from that list. By building this application, I learned how to manage data using JavaScript. Thanks to that my website is more interactive. I also used a medium-fidelity wireframe to build the UI.
Client
- A fully functional website.
- Mobile first website.
- Only using semantic HTML.
To get a local copy up and running, follow these steps:
In order to run this project you need:
-
A web browser to see the website.
-
And a code editor if you want to edit the code. For example, Vs Code.
Clone this repository to your desired folder:
- Clone it using your terminal:
git clone https://github.com/Alejandroq12/my-books.git
- If the previous method does not work you may also download the repo as a .zip file and once you decompress the .zip file you are ready to use it.
Important: do not forget to clone the repo in the correct folder, probably you will use the following commands to achieve that in your terminal:
- To navigate a certain folder:
cd <folder name>
- To navigate to the previous folder:
cd ..
Install this project with:
-
To see this project you will not need to install something else.
-
But in case you want to test the linter that I configured to check errors you will have to complete the following steps:
Run the command to install all necessary dependencies (including linters):
npm install
- If you run npm install do not forget to create a .gitignore file to prevent the node_modules to be uploaded to GitHub:
.gitignore
node_modules/
To see this project you will only need to:
- Open the index.html file with a web browser.
-
Make sure all the linters and their configurations are installed and set up correctly in your project. If you haven't installed them yet, run
npm install
in your project directory to install the packages listed in yourpackage.json
file. -
Run each linter with the following commands:
- For ESLint:
npx eslint .
- For Stylelint:
npx stylelint "**/*.{css,scss}"
- For hint:
npx hint .
- Review the output of each linter and fix any issues reported.
You can deploy this project using GitHub pages:
- Log in to your GitHub account and navigate to the repository that contains your website files.
- Make sure that your website files are located in the main branch and in the root directory of the repository.
- If your website is not already live, make sure that the index.html file is the main page of your website.
- Click on the "Settings" tab in your repository.
- Scroll down to the "GitHub Pages" section.
- In the "Source" dropdown menu, select the branch where your website files are located. For a simple website with only HTML and CSS, this is typically the main branch.
- In the "Path" field, make sure that the root directory is specified (i.e., "/").
- Click "Save" to generate your website.
- Wait a few minutes for GitHub to build and deploy your website.
- Once the website is deployed, visit the GitHub Pages URL to view your site.
👤 Julio Quezada
- GitHub: Alejandroq12
- Twitter: @JulioAle54
- LinkedIn: Julio Quezada
- I will add a contact form
- I will add media queries for larger screens
- I will use JavaScript to add more
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please give a star. Thanks in advance.
I would like to thank Wes Bos because I learned how to implement flexbox with his free tutorial:
- Wes Bos: Wes Bos
-
Are you goin to use React in the future?
- Yes! I will transform this website into a React App.
-
Did you create this website from scratch?
- Yes! From zero, and I will improve it a lot.
This project is MIT licensed.