Skip to content

Latest commit

 

History

History
101 lines (74 loc) · 1.7 KB

README.md

File metadata and controls

101 lines (74 loc) · 1.7 KB

w12

My Car-Rental Fullstack

This project is a built with a modern tech stack, including Apollo GraphQL, Typescript, Tailwind CSS, and more. The application is fully responsive and designed to be easily deployable using Docker and Docker Compose.

Tech Stack

  • Frontend:

    • React.js
    • Typescript
    • Apollo GraphQL
    • Tailwind CSS
    • Responsive Design
  • Backend:

    • Node.js
    • Express.js
    • Nest.js
    • TypeORM
    • GraphQL
  • Deployment:

    • Docker
    • Docker Compose

Getting Started

Prerequisites

Make sure you have the following installed on your machine:

  • Node.js
  • Yarn
  • Docker
  • Docker Compose

Installation

  1. Clone the repository:
git clone https://github.com/your-username/your-repo.git
cd your-repo
  1. Install backend dependencies
cd server
yarn install
  1. Install frontend dependencies
cd ../client
yarn install

Running the Application

Development To start the server in development mode, navigate to the server directory and run:

cd server
yarn start:dev

To start the frontend, navigate to the client directory and run:

Copy code
cd client
yarn start

Docker

To build and run the application using Docker, use the following commands:

# Build the Docker images
docker-compose build

Start the containers

docker-compose up

To shut down the application, use:

docker-compose down

The application will be accessible at the same ports as in development mode:

Frontend: http://localhost:3000 Backend: http://localhost:9000 GraphQL: http://localhost:9000/graphql SQL: localhost:3306