Skip to content

Web application for MyCargonaut, built with Next.js, providing user-friendly interfaces for ride and freight-sharing.

License

Notifications You must be signed in to change notification settings

BatatiDE/mycargonaut-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MyCargonaut Web Application

This is the web application codebase for MyCargonaut, a ride-sharing and freight-sharing platform that allows users to connect for transportation services. Built with Next.js, this app delivers a responsive and efficient experience for desktop and mobile web browsers.


Table of Contents


Features

  • User authentication (Login/Register) using JWT.
  • Create, edit, and manage offers and requests.
  • Search functionality with route filters and date range.
  • Real-time tracking of shipments and rides.
  • Secure payment processing and transaction history.
  • Review and rating system for users and drivers.

Tech Stack

  • Framework: Next.js
  • Styling: Tailwind CSS
  • State Management: Context API / Redux (if applicable)
  • Backend Communication: REST and GraphQL
  • Testing: Jest and Cypress

Installation

  1. Clone the repository:

    git clone https://github.com/BatatiDE/mycargonaut-web.git
    cd mycargonaut-web
  2. Install dependencies:

    npm install
  3. Setup environment variables: Create a .env.local file in the root directory and add the required environment variables (see Environment Variables).


Running Locally

  1. Start the development server:

    npm run dev
  2. Access the app: Open http://localhost:3000 in your browser.


Folder Structure

.
├── public/              # Public assets (e.g., images, icons)
├── src/
│   ├── app/             # Next.js pages and layouts
│   ├── components/      # Reusable components
│   ├── styles/          # Global and modular CSS files
│   ├── utils/           # Helper functions and utilities
│   ├── types/           # TypeScript type definitions
│   ├── tests/           # Test cases for components and pages
├── .eslintrc.json       # ESLint configuration
├── package.json         # Dependencies and scripts
└── README.md            # Project documentation

Environment Variables

The web app requires the following environment variables:

Variable Description
NEXT_PUBLIC_API_URL Base URL for the backend API
NEXT_PUBLIC_MAP_API_KEY API key for map services (Google Maps, etc.)

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a feature branch:
    git checkout -b feature/your-feature
  3. Commit your changes:
    git commit -m "feat: Add your feature"
  4. Push to your branch:
    git push origin feature/your-feature
  5. Open a Pull Request.

License

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

About

Web application for MyCargonaut, built with Next.js, providing user-friendly interfaces for ride and freight-sharing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published