This repository contains the backend service for the Kung-Fu Lighting project, handling API requests, profile storage, and user authentication for the ChromaProfiles Gallery. It is built using Node.js and Express, with a focus on performance and scalability.
- RESTful API: Provides endpoints for managing RGB lighting profiles.
- User Authentication: Secure login via Reddit 0Auth2.
- Profile Management: Create, update, and delete lighting profiles.
- Database Integration: Utilizes MongoDB (or other databases) for profile storage.
- Error Handling: Centralized error handling and validation mechanisms.
-
Clone the repository:
git clone https://github.com/TheSylvester/Kung-Fu-Lighting-backend.git
-
Navigate to the project directory:
cd kung-fu-lighting-backend
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add the necessary environment variables:MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
-
Start the server:
npm start
GET /profiles
: Fetch all available RGB lighting profiles.POST /profiles
: Create a new profile.PUT /profiles/:id
: Update a profile by ID.DELETE /profiles/:id
: Delete a profile by ID.POST /auth/login
: User login.POST /auth/register
: User registration.
Feel free to submit issues or contribute to the project via pull requests.
This project is licensed under the GPL-3.0 License.