Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jishjitsu/SmartBidPro

Repository files navigation

SmartBid-PRO

A revolutionary technology aimed to digitise the hassle of tenders through analog means.

SBP achieves this using a secure smart contract based backend, and an AI validation model which comprehensively checks for compliance of a Certain tender, and regulations to be followed.

Built using Next.js and Rocket(Rust)

Tech Stack

Frontend

  • Next.js 16 - React framework with App Router
  • shadcn/ui - Beautiful, accessible UI components
  • Tailwind CSS - Utility-first CSS framework
  • TypeScript - Type-safe development

Backend

  • Rocket (Rust) - Fast, secure web framework
  • MongoDB - NoSQL database for flexible data storage
  • JWT Authentication - Secure token-based auth
  • bcrypt - Password hashing

Project Structure

smartbidpro/
├── app/                    # Next.js pages
│   ├── login/             # Login page
│   ├── dashboard/         # Dashboard page
│   └── page.tsx           # Home page (redirects)
├── components/ui/         # shadcn/ui components
│   ├── button.tsx
│   ├── card.tsx
│   └── input.tsx
├── lib/                   # Utility functions
│   └── utils.ts
├── backend/               # Rust backend
│   ├── src/
│   │   ├── main.rs       # Entry point
│   │   ├── auth.rs       # JWT authentication
│   │   ├── db.rs         # MongoDB connection
│   │   ├── models.rs     # Data models
│   │   └── routes/       # API endpoints
│   │       ├── auth.rs   # Auth routes
│   │       └── auctions.rs # Auction CRUD
│   └── Cargo.toml        # Rust dependencies
└── package.json          # Node dependencies

Getting Started

Prerequisites

  • Node.js 20+ installed
  • Rust toolchain installed
  • MongoDB running locally or connection URI

Backend Setup

  1. Navigate to the backend directory:
cd backend
  1. Create a .env file with your configuration:
MONGODB_URI=mongodb://localhost:27017/smartbidpro
JWT_SECRET=your-secret-key-change-this-in-production
ROCKET_PORT=8000
ROCKET_ADDRESS=0.0.0.0
  1. Build and run the backend:
cargo build
cargo run

The Rocket server will start on http://localhost:8000 z

Frontend Setup

  1. Navigate to the project root:
cd ..
  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev

The Next.js app will start on http://localhost:3000

Development

To make changes:

  1. Backend: Edit files in backend/src/, rebuild with cargo build
  2. Frontend: Edit files in app/ or components/, changes hot-reload automatically
  3. Populating Users: Run /scripts/create-test-user.js using node to seed users into your database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors