Welcome to the Shopping and Blogging web application project! Below is an in-depth overview of the project's structure and functionalities:
jquery.jsandjquery.js.zip: JavaScript files or archives associated with the jQuery library.
-
public: Directory containing public assets for the project. -
views: Directory containing Handlebars (.hbs) templates for rendering web pages.-
layouts: Directory for layout templates. -
404.hbs,about.hbs,addCategory.hbs,addItem.hbs,categories.hbs,items.hbs,login.hbs,register.hbs,shop.hbs,userHistory.hbs: Handlebars templates for different pages within the application.
-
-
.gitignore: Specifies files and directories to be ignored by version control. -
auth-service.js: Manages authentication-related functionalities. -
package.jsonandpackage-lock.json: Files containing project metadata and dependencies. -
server.js: The main server file responsible for handling server-side operations. -
store-service.js: Manages services related to the project's store functionalities.
To run the project, follow these steps:
-
Ensure you have the necessary dependencies installed by running:
npm install
-
Start the server using the command:
node server.js
-
Visit http://localhost:your_port in your browser to access the application.
-
Shopping Section:
- Explore items and categories in the
shoppage. - Add items to the shopping cart.
- Navigate through different categories in
categories.hbs.
- Explore items and categories in the
-
Blogging Section:
- Access blog-related pages like
about,login,register, etc. - Engage with user-related pages like
userHistory. - Utilize authentication services provided by
auth-service.js.
- Access blog-related pages like