Skip to content

About

Project implementing Postgres, Node.js and Express to keep track on friends and family visited countries to better plan the next destenation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Map My Journey
MapMyJourney.web

Demo

forthebadge   forthebadge   forthebadge   GitHub Repo stars GitHub forks

🔹 Report Bug     🔹 Request Feature

Built With

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

Features

🗺️ 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.

Getting Started

Follow these instructions to set up and run the project locally.

Prerequisites

  • Node.js
  • PostgreSQL

🛠 Installation and Setup Instructions

  1. Clone the repository:

    git clone https://github.com/EinavFerrera/MapMyJourney.git
    cd MapMyJourney
  2. Install dependencies:

    npm install
  3. 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"
  4. Run the application:

    npm start

    The application will be running at http://localhost:3000.

🛠 Database Initialization

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.

API Endpoints

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

Show Your Support

Give a ⭐ if you like this project!

About

Project implementing Postgres, Node.js and Express to keep track on friends and family visited countries to better plan the next destenation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages