Skip to content

CousemaAnjary/carnet-voyage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

App Icon Carnet Voyage

Project Overview

Carnet Voyage is a travel diary application that allows users to document their travel experiences. Users can add new travel entries, update existing ones, and view their travel history. The application leverages modern web technologies to provide a seamless and interactive user experience.

Features

  • Add New Travel Entries: Users can create new entries for their travels, including details such as destination, dates, photos, and notes.
  • Update Travel Entries: Users can edit their existing travel entries to keep their travel diary up to date.
  • View Travel History: Users can browse through their past travel entries and reminisce about their journeys.
  • Offline Support: The application supports offline usage, allowing users to access their travel entries without an internet connection.

Important: The offline support work only in production.

Technologies Used

  • Frontend: React, Vite, Vite PWA, TypeScript
  • Backend: Laravel 10
  • Database: MySQL for backend storage

Getting Started

Prerequisites

  • Node.js (version 14 or higher)
  • npm (version 6 or higher)
  • PHP (version 8.0 or higher)
  • Composer (version 2.0 or higher)
  • MySQL (or any other supported database)

Installation

  1. Clone the repository:
git clone https://github.com/CousemaAnjary/carnet-voyage
  1. Navigate to the project directory:
cd carnet-voyage

Frontend Intialization

  1. Navigate to the frontend directory:
cd client
  1. Install the dependencies:
npm install
  1. Start the developpement server:
npm run dev
  1. Open your browser and navigate to http://localhost:3000 to view the application.

Backend Initialization

  1. Navigate to the backend directory:
cd server
  1. Install the dependencies:
composer install
  1. Copy the .env.example file to .env:
cp .env.example .env
  1. Configure your database settings in the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
  1. Run the database migrations:
php artisan migrate
  1. Start the backend server:
php artisan serve
  1. The backend server will run on http://localhost:8000.

Building for Production and Run it

  1. To buid the application for production run:
npm run build

The production-ready files will be generated in the dist directory

  1. To run production build run:
npm run preview

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published