Skip to content

Repository files navigation

🏍️ Bike Shop - AutoVerse

πŸš€ Overview

AutoVerse is a full-stack bike shop application built with the MERN Stack. It offers a seamless experience for browsing, purchasing, and managing bikes online with secure payments via Shurjopay.

🌐 Live Demo

Visit Bike Shop

βš™οΈ Server-Side Repo:

bike-shop-server

Project Structure:project-structure.txt

πŸ”₯ Tech Stack

Frontend:

  • React.js
  • TypeScript
  • Redux Toolkit
  • Tailwind CSS
  • Ant Design
  • Authentication

Backend:

  • Node.js
  • Express.js
  • MongoDB & Mongoose
  • JWT Authentication
  • Shurjopay Payment Gateway

πŸ“‚ Folder Structure

Frontend (/frontend Directory)

frontend/
│── src/
β”‚   β”œβ”€β”€ assets/        # Images, icons, logos
β”‚   β”œβ”€β”€ components/    # Reusable UI components
β”‚   β”œβ”€β”€ pages/         # Page components
β”‚   β”œβ”€β”€ redux/         # Redux store & slices
β”‚   β”œβ”€β”€ utils/         # Helper functions
β”‚   β”œβ”€β”€ App.tsx        # Main app entry
β”‚   β”œβ”€β”€ index.tsx      # Root file
β”‚   β”œβ”€β”€ routes.tsx     # Routing configuration
β”‚   β”œβ”€β”€ .env.example   # Example environment variables
│── public/
│── package.json       # Frontend dependencies
│── README.md

πŸ›  Installation Guide

πŸ“Œ Prerequisites

  • Node.js installed
  • MongoDB Atlas or Local MongoDB
  • Create .env files in backend/ and frontend/

πŸš€ Backend Setup

cd backend
npm install
npm start

πŸš€ Frontend Setup

cd frontend
npm install
npm run dev

πŸ“– API Endpoints

Method Endpoint Description
GET /api/v1/bikes Fetch all bikes
POST /api/v1/orders Place an order
POST /api/v1/auth/register User registration

πŸš€ Deployment Guide

Frontend Deployment (Vercel)

  1. Install Vercel CLI: npm install -g vercel
  2. Run vercel and follow setup prompts
  3. Deploy using vercel --prod

Backend Deployment (Render/Heroku)

  1. Push code to GitHub
  2. Connect Render/Heroku with GitHub repo
  3. Set up environment variables
  4. Deploy & monitor logs

πŸ›  Contributing

We welcome contributions! Check CONTRIBUTING.md for details.

πŸ“œ License

MIT License - see the LICENSE file for details.

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})
  • Replace tseslint.configs.recommended to tseslint.configs.recommendedTypeChecked or tseslint.configs.strictTypeChecked
  • Optionally add ...tseslint.configs.stylisticTypeChecked
  • Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
  // Set the react version
  settings: { react: { version: '18.3' } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs['jsx-runtime'].rules,
  },
})

About

A full-stack 🏍" Bike Shop " application built with the MERN Stack. It offers a seamless experience for browsing, purchasing, and managing bikes online with secure payments via Shurjopay.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages