Skip to content

ErickGBR/WebServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebServer with Express and HBS (Handlebars)

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.

Prerequisites

Before you begin, make sure you have the following installed:

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/ErickGBR/WebServer.git
  2. Navigate to the project directory:

    cd WebServer
  3. Install the project dependencies:

    npm install

Usage

  1. Start the server using nodemon (which automatically restarts the server when you make changes):

    npm start
  2. Open a web browser and visit http://localhost:3000 to see the server in action.

Project Structure

  • 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.

Server-Side Rendering

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.

Contributing

If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a branch for your contribution.
  3. Make your changes and ensure that everything works.
  4. Submit a pull request with your changes.

License

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

About

Simple web Server with Express and Node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published