This is a simple WebServer project built with Express.js and HBS (Handlebars) view engine. The server is designed to serve HTML, CSS, and JavaScript files, and it demonstrates server-side rendering using HBS templates.
Before you begin, make sure you have the following installed:
- Node.js (which includes npm)
-
Clone this repository to your local machine:
git clone https://github.com/ErickGBR/WebServer.git
-
Navigate to the project directory:
cd WebServer
-
Install the project dependencies:
npm install
-
Start the server using nodemon (which automatically restarts the server when you make changes):
npm start
-
Open a web browser and visit
http://localhost:3000
to see the server in action.
index.js
: The entry point of the application.views/
: Contains HBS templates for rendering HTML content.public/
: Stores static files such as CSS and JavaScript.routes/
: Define the routes and route handling logic.
This WebServer utilizes the HBS (Handlebars) view engine for server-side rendering. You can find example templates in the views/
directory, which are used to render HTML dynamically on the server.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a branch for your contribution.
- Make your changes and ensure that everything works.
- Submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for more details.
Thank you for using this WebServer with Express and HBS! If you have any questions or suggestions, please feel free to contact us.
Author: Erick Burgos Email: erickburgos1519@gmail.com