Skip to content

Vedanth-Rach/CarspecsHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autimilezzz Backend API

Node.js + Express backend for the Autimilezzz car information platform.

Quick Start

  1. Install dependencies:
npm install
  1. Create .env file:
MONGODB_URI=your_mongodb_connection_string
PORT=5000
  1. Start the server:
npm start

Deployment on Render

Configuration

  • Root Directory: backend
  • Build Command: npm install
  • Start Command: npm start
  • Environment: Node

Environment Variables

Add these in Render dashboard:

  • MONGODB_URI - Your MongoDB Atlas connection string

API Endpoints

  • GET / - Health check
  • GET /api/posts - Get all posts
  • POST /api/posts - Create new post

MongoDB Setup

Get your connection string from MongoDB Atlas and add it to the environment variables.

Format: mongodb+srv://username:password@cluster.mongodb.net/dbname?retryWrites=true&w=majority

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published