A full-stack web application for managing trip records. Users can view, filter, create, update, and delete trip data, including driver name, trip date, miles driven, miles per gallon (MPG), and other related information.
The application uses server-side HTML templating with Nunjucks and stores data in MongoDB using Mongoose.
- View all trip records
- Filter trips by various criteria
- Add new trip entries
- Edit existing trip information
- Delete trip records
- Server-side rendering with Nunjucks
- Persistent storage with MongoDB
- Node.js
- Express.js
- BootStrap
- MongoDB
- Mongoose
- Nunjucks
- HTML
- CSS
- JavaScript
Before running the application, make sure you have installed:
- Node.js
- npm (included with Node.js)
- MongoDB
-
Clone the repository:
-
Navigate to the project folder:
cd trip-data-app
-
Install dependencies:
npm install
-
Start MongoDB on your computer.
-
Import the trip data from trips.json into MongoDB:
mongoimport --db tripdata --collection trips --file trips.json --jsonArray
-
Start the application:
node index.js
-
Open your browser and go to:
After starting the application, you can:
- Browse all trip records
- Search or filter trips
- Create new trips
- Update existing entries
- Delete trips
#Future Improvements
- User authentication
- Summary statistics (total miles, average MPG)
- Data export to CSV
- Deployment to a cloud hosting service
#Author
Harvey Reid

