Welcome to the Travel Tracker project repository! This project is a web application that allows users to track the countries they have visited by coloring them on a world map. The application is built with Node.js, Express, PostgreSQL, HTML, CSS, JavaScript, and EJS.
- Node.js
- Express.js
- PostgreSQL
- HTML
- CSS
- JavaScript
- EJS
- Interactive world map with all countries.
- Input field to add country names that you have visited.
- New countries are added to the PostgreSQL database and displayed on the map with different colors.
To run the Travel Tracker website locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Utkarsh1244p/Travel-Tracker.git
-
Navigate into the project directory:
cd Travel-Tracker
-
Install the dependencies:
npm install
-
Set up the PostgreSQL database:
-
Ensure PostgreSQL is installed and running on your machine.
-
Create a new database named world.
-
Create a table named visited_countries with the following schema:
CREATE TABLE visited_countries ( id SERIAL PRIMARY KEY, country_code CHAR(2) NOT NULL );
-
Run the website:
npm index.js