Skip to content

reyadek/elysia-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elysia Js with Bun runtime

CRUD and AUTH with Elysia Js Bun API

Install Bun

Setup database and env

  • create database elysia_app with mysql
  • setup .env
  • DATABASE_URL= "mysql://root:Asdqwe12345@localhost:3306/elysia_app?schema=public"
  • JWT_SECRETS= "secret"
  • JWT_EXPIRED= "2h"

List dependency

  • "elysia": "latest" (Nov 3th, 2023)
  • "@elysiajs/cookie": "^0.7.0"
  • "@elysiajs/jwt": "^0.7.0"
  • "@prisma/client": "^5.5.2",
  • "prisma": "^5.5.2"
  • "zod": "^3.22.4"
  • "@elysiajs/swagger": "^0.7.4"

checkout detail in package.json

Install dependency

bun i  

Init prisma

npx prisma migrate dev --name init  

Development

To start the development server run:

bun run dev

Open http://localhost:3000/ with your browser to see the result.

Http request list

Swagger

http://localhost:3000/swagger

Author

About

API CRUD with elysia js and Bun runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published