Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kavindu-mane/gpa-manager
Simple GPA Calculator and Manager with React and Honojs.
https://github.com/kavindu-mane/gpa-manager
bun honojs mysql prisma-orm reacrjs shadcn tailwindcss vitejs
Last synced: 3 days ago
JSON representation
Simple GPA Calculator and Manager with React and Honojs.
- Host: GitHub
- URL: https://github.com/kavindu-mane/gpa-manager
- Owner: kavindu-mane
- License: mit
- Created: 2024-04-05T09:31:04.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T14:43:00.000Z (9 months ago)
- Last Synced: 2024-04-08T22:48:57.325Z (9 months ago)
- Topics: bun, honojs, mysql, prisma-orm, reacrjs, shadcn, tailwindcss, vitejs
- Language: TypeScript
- Homepage:
- Size: 571 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPA-Manager
## Tech Stack
- Frontend - Vite + React + TypeScript
- Backend - Hono
- Database - MySQL
- ORM - Prisma ORM
- Validations - Zod
- Runtime - Bun or Nodejs
- Authentication : JWT## How to Run
_Migrating Bun to Nodejs_
This project build on bun runtime environment. if you need this project on nodejs , you need migrate to Nodejs.
- Step - 1 : Install required dependency for hono (Backend)
```
make bun-to-node
```- Step - 2 : Migrate Bun bcrypt hash function to bcrypt library
- You need change `login.ts` and `registration.ts` files in `api/src/service`. (Follow instructions on that files)
- You need change `index.ts` file in `api/src`. (Follow instructions on that file)_Setup_
```typescript
// Bun
make setup// Node js
make setup-node
```After running setup command you need add environment variables in `.env` files. Default `VITE_API_URL` is `http://localhost:8000/api/`
_Migrate Database_
```typescript
// Bun
make migrate// Node js
make migrate-node
```_Start Servers_
```typescript
// Bun
make dev// Node js
make dev-node
```Use can serve Frontend on `http://localhost:3000` and Backend on `http://localhost:8000`
## License
MIT
## Author
[Kavindu Manahara](https://github.com/kavindu-mane)