Skip to content

suhag-alamin/carx-server

Repository files navigation

Carx - Affordability at your Fingertips (Server-side)

Carx Logo

Carx is a full-stack application that brings affordability to your fingertips. This repository contains the server-side code. For the client-side code, visit Carx Client.

Features

Authentication

  • Users can log in with Google or email/password.
  • Users can create an account.

Admin Panel

  • Admin can make other users admins.

Car Management

  • Admins can add, delete, and update cars in the database.
  • Users can retrieve all cars or a single car from the database.

Order Processing

  • Users can place orders.
  • Users can retrieve their order history.
  • Admins can view all orders and update order statuses.

Payment Handling

  • Users can make payments for orders.
  • Users can view their payment history.
  • Admins can access all payment records.

Review System

  • Users can add reviews.
  • Users can view their reviews.
  • Admins can view all reviews and delete them.

Messaging System

  • Users can send messages.
  • Admins can access all messages in their inbox.

Technology Stack

  • Language: TypeScript
  • Server Framework: Node.js with Express.js
  • Database: MongoDB
  • Authentication: Firebase
  • Payment Processing: Stripe
  • Email Handling: Node Mailer
  • Validation: Zod

Getting Started

Prerequisites

  • Node.js and npm installed
  • MongoDB installed and running
  • Firebase and Stripe accounts for authentication and payment features

Installation

  1. Clone the repository:
git clone https://github.com/suhag-alamin/carx-server.git
  1. Navigate to the project directory:
cd carx-server
  1. Install dependencies:
yarn install
  1. Configure environment variables (refer to .env.example)

  2. Run the server:

yarn dev

Author

Suhag Al Amin

Releases

No releases published

Packages

No packages published