Before getting started, ensure you have the following:
- Node.js: (v20) or the latest version of Node.js. You can download it from the official Node.js website.
- npm / yarn / pnpm: Usually installed with Node.js.
- Git: To clone the repository. If you haven’t installed it, you can download it from the official Git website.
-
Clone the Repository 📥
Open your terminal or command prompt and run the following command to clone the repository:
git clone https://github.com/nulitas/traveling.git
-
Navigate to the Project Directory 📂
After cloning the repository, navigate to the project directory:
cd traveling -
Install Dependencies 📦
Run the following command to install all the required dependencies:
npm install
-
Set Up Environment Variables 🌐
Create a
.envfile in the root directory of your project if it doesn't exist, and add the following environment variable:VITE_API_BASE_URL=="YOUR API KEY"The
.envfile should be in the same directory as yourpackage.jsonfile. -
Run the Project 🚀
After completing all the steps above, you can run the project with the following command:
npm run dev
The project will run in development mode and can be accessed in your browser at
http://localhost:5173.