Skip to content

johnshields/modulr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modulr 🎛️

A backend API for a mock rental service, built with Node.js and Supabase to simulate real-world workflows. Implements RESTful routes for gear management with PostgreSQL integration, structured using MVC patterns and tested with Postman.

🧰 Development Environment

  • Node.js / Express
  • Supabase (PostgreSQL)

📁 API Directory & File Structure

modulr/
├── src/
│ ├── controllers/
│ │ └── gearController.js
│ ├── models/
│ │ └── gearModel.js
│ ├── routes/
│ │ └── gearRoutes.js
│ ├── services/
│ │ └── supabaseClient.js
│ └── server.js
├── .env
└── package.json

🚀 How to Run

Requirements

⚙️ Setup & Run

Open a directory in Command-Line and enter:

$ git clone https://github.com/johnshields/modulr.git

Create a .env file:

SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_anon_key

SQL script located here sql/modulr_db.sql

Run API

$ cd modulr/
$ npm install
$ npm run dev

📦 API Endpoints

  • GET /api/gear - List all gear
  • GET /api/gear/:id - Get gear by ID
  • POST /api/gear - Add new gear
  • PUT /api/gear/:id - Update gear
  • DELETE /api/gear/:id - Delete gear

About

A simple and scalable API for renting music gear. Built with Node.js, Express, and Supabase.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published