Skip to content

React Web App that allows users to search a country and its information

Notifications You must be signed in to change notification settings

ruzzelwidjaja/country-catalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 Country Catalog

Country Catalog is a web application that allows users to search for countries and access detailed information about them, including a generated travel guide using the GPT-4 API.

Link: https://countrycatalog.vercel.app/

🎥 Demos

Demo Wide Demo Mobile

🌟 Features

  • Country Information: Search for countries and view detailed information including a dynamically generated travel guide.
  • Responsive Design: Optimized for both desktop and mobile devices.
  • External Links: Quick access to Google Maps, Twitter, and Google Flights for each country.
  • Travel Guide Generation: Create personalized travel guides for each country using the GPT-4 API.

🚀 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software:

  • Node.js
  • npm (Node Package Manager)

Installing

A step-by-step series of examples that tell you how to get a development environment running.

1. Clone the repository:

git clone https://github.com/ruzzelwidjaja/country-catalog.git

2. Install dependencies for both client and server:

npm run install-all

Running the Application

To run the application, you'll need to start both the client and the server separately. In the root directory, follow these steps:

1. Start the Client:

npm run client
  • The client will now be running at your localhost react port.

2. Start the Server:

  • Open a new terminal.
  • Navigate to the root directory of the project as before.
  • Start the server application:
    npm run server
    
  • The server will now be running and will listen to requests, typically on port 3001.

Make sure to keep both the client and server running to use the application. You can access the web interface through your browser at the client's URL.

🛠️ Tech Stack

  • Frontend: React, TypeScript, Tailwind CSS, Framer Motion
  • Backend: Node.js, Express
  • UI Components: shadcn/ui, Vaul
  • Icons: Lucide
  • APIs: RestCountries, OpenAI (GPT-4)
  • Testing:
    • Frontend: Vitest
    • Backend: Jest

About

React Web App that allows users to search a country and its information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published