Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartParking

A full-stack web app that helps users find nearby available parking spots using OpenStreetMap APIs.


🔧 Backend Setup

1. Create .env in the root folder:

# Server Configuration
PORT=your_desired_port

# mysql Database Configuration
PGUSER=username
PGPASSWORD=password
PGHOST=host_url
PGDATABASE=database_name

# Arcjet Configuration
ARCJET_KEY=your_arcjet_api_key
ARCJET_ENV=development

# Session Secret for express-session
SESSION_SECRET=your_session_secret
ORS_API_KEY=your_openrouteservice_api_key

# Razorpay credentials
KEY_ID="your_key_id"
KEY_SECRET="your_key_secret"

# Admin signup
ADMIN_SECRET="your_admin_secret"

2. Start Backend Server:

npm install
npm run dev

💻 Frontend Setup

cd ./frontend

1. Create .env in the frontend folder:

VITE_BASE_URL="http://localhost:3000/api"

2. Start Frontend Server:

npm install
npm run dev

🔑 API Keys Setup

📍 OpenRouteService

🛡️ Arcjet

💰 Razorpay

🛠️ Admin Dashboard

  • The admin dashboard can be accessed directly via:

    http://localhost:5173/admin
    
  • There is no navigation button to access it — it must be visited manually.

  • To sign up as admin, use the ADMIN_SECRET in your .env file.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages