This project is a practice and learning application built using Node.js, Express, TypeScript, and Supabase. The main goal is to understand and implement these technologies together.
- Getting Started
- Prerequisites
- Installation
- Running the Application
- Project Structure
- Usage
- Error Handling
- Contributing
- License
These instructions will help you set up the project on your local machine for development and testing purposes.
- Node.js (>= 18.20.x)
- npm (>= 10.x)
- Supabase Account and Project
-
Clone the repository:
git clone https://github.com/yourusername/node-supabase.git cd node-supabase
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your Supabase credentials:SUPABASE_URL=your-supabase-url SUPABASE_KEY=your-supabase-key
To start the application, run:
npm run dev
node-supabase/
│
├── src/
│ ├── controllers/
│ │ └── exampleController.ts
│ ├── common/
│ │ └── base-controller.ts
│ ├── errors/
│ │ └── errors.ts
│ ├── config/
│ │ └── supabase.ts
│ ├── middlewares/
│ │ └── errorHandler.ts
│ ├── modules/
│ │ └── users/
│ │ └── products/
│ ├── app.ts
│ ├── boostrap.ts
│ └── routes.ts
│
├── .env
├── package.json
├── tsconfig.json
└── README.md