Map My Journey
MapMyJourney.web
An interactive web application for tracking the countries visited by you, your family, and friends. Plan your next destination with ease by keeping a visual record of everyone's travels.
- Frontend: EJS templates, HTML, CSS
- Backend: Node.js, Express.js
- Database: PostgreSQL
- Development Tools: VsCode
🗺️ Dynamic Map: Visualize visited countries on an interactive map. 👨👩👧👦 Family and Friends Tracking: Add and track countries visited by multiple users. 👥 User Management: Easily add or update family members and friends. 💾 Database Integration: Utilizes PostgreSQL for storing user and country data.
Follow these instructions to set up and run the project locally.
- Node.js
- PostgreSQL
-
Clone the repository:
git clone https://github.com/EinavFerrera/MapMyJourney.git cd MapMyJourney -
Install dependencies:
npm install
-
Set up the database:
- Ensure PostgreSQL is installed and running locally.
- Create a PostgreSQL database and user.
- Update the database connection details in the "..env" file (e.g., user, host, database, password, port).
- Rename the "..env" file to ".env"
-
Run the application:
npm start
The application will be running at http://localhost:3000.
To initialize the PostgreSQL database, you can use the provided queries.sql file located in the project root. This file contains the SQL commands to create the necessary tables and seed initial data.
- GET /: Home page displaying the map.
- GET /welcome: Welcome page to add initial family member.
- POST /add: Add a country to the visited list.
- POST /user: Select a user or view all family members.
- POST /new: Add a new family member.
Give a ⭐ if you like this project!
