Skip to content

A RESTful API built with Elysia.js to manage e-commerce services, including cart management, product creation, and order processing.

License

Notifications You must be signed in to change notification settings

mathisdev7/ecom-elysia-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This project is currently under development. Features and functionality may change as the project evolves.

Elysia Authentication API

This project is an authentication API built using Elysia, Prisma, and JWT. It provides a set of routes for user registration, login, profile management, and user administration.

Features

  • User registration and login
  • JWT-based authentication
  • User profile management
  • Admin-only routes for user management

Technologies Used

  • Elysia: A fast and lightweight web framework
  • Prisma: An ORM for database interactions
  • JWT: For secure token-based authentication
  • Jest: For unit testing

API Endpoints

  • POST /api/v1/users: Create a new user
  • POST /api/v1/users/login: Log in a user
  • GET /api/v1/users: Retrieve all users (admin only)
  • GET /api/v1/users/:id: Retrieve a specific user (admin only)
  • GET /api/v1/users/profile: Get the current user's profile
  • PUT /api/v1/users/:id: Update a user's information (admin only)
  • DELETE /api/v1/users/:id: Delete a user (admin only)

Getting Started

To get started with the project, clone the repository and install the dependencies:

git clone https://github.com/mathisdev7/ecom-elysia-api.git ecom-elysia-api
cd ecom-elysia-api
bun install

Running the API

You can start the API with the following command:

bun dev

License

This project is licensed under the MIT License.

About

A RESTful API built with Elysia.js to manage e-commerce services, including cart management, product creation, and order processing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published