Skip to content

Drummingcoder/bus-website

Repository files navigation

Bus Website

This is a simple bus booking website that can take user input in a reservation form and store it in the file database.db. The form can take name, number of people, route number, and time. There's also a place to display a bus schedule (like which buses are running at this time and date and their route), but it hasn't been implemented yet, so inputting the time and date does nothing. The website also displays images on a roulette, and the images can be swapped for more relevant ones.

How to Locally Deploy

  1. Install dependencies

    Open a terminal in the project folder and run:

    npm install express body-parser sqlite3
  2. Start the server

    In the same terminal, run:

    node server.js

    You should see:

    Server is running on http://localhost:3000
    
  3. Open the website

    Open your browser and go to:

    http://localhost:3000
    

The website can now be viewed and used. The data entered in the reservation form will be stored in database.db.

A note on AI: Github Copilot was used to generate the backend (server.js) and edit some of the front end files (index.html, script.js). The rest was done by a human.

About

A template of a bus booking website with some backend capabilities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy