https://github.com/kisan-engg/bun-fullstack
bun/node decoupled full stack: Notes manager
https://github.com/kisan-engg/bun-fullstack
app application authentication authrization backend better-auth bun decoupled drizzle elysia example frontend fullstack learning node postgresql svelte tailwind tutorial web
Last synced: 6 months ago
JSON representation
bun/node decoupled full stack: Notes manager
- Host: GitHub
- URL: https://github.com/kisan-engg/bun-fullstack
- Owner: kisan-engg
- License: apache-2.0
- Created: 2025-01-27T02:41:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T07:21:58.000Z (11 months ago)
- Last Synced: 2025-02-25T08:28:42.340Z (11 months ago)
- Topics: app, application, authentication, authrization, backend, better-auth, bun, decoupled, drizzle, elysia, example, frontend, fullstack, learning, node, postgresql, svelte, tailwind, tutorial, web
- Language: Svelte
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Bun/Node FullStack Decoupled: Notes Manager
---
This Notes Manager could be a reference point if you want to enjoy a full stack application!
I have made it decoupled, so that backend and frontend can be used independently.
I could not find any good examples for elysia, better-auth!
So build my oun example for self-reference.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
If you have a liking to Node+npm.
You can replace bun (or bun --bun) with npm.
What things you need to install the software and how to install them.
- Bun
- OR Node
- PostgreSQL
## Installing
Running this application in local would require running two bun/node instances front end and backend!
## Setup DB
Create db name 'users'.
I am using user pgelysia, feel free to use postgres as user.
helping script:
- CREATE DATABASE users;
- CREATE USER pgelysia WITH ENCRYPTED PASSWORD 'fullstack';
- GRANT ALL PRIVILEGES ON DATABASE users TO pgelysia;
- \c users postgres
- (# You are now connected to database "users" as user "postgres".)
- GRANT ALL ON SCHEMA public TO pgelysia;
Make sure to use right user and db name
```
postgres://pgelysia:fullstack@localhost:5432/users
```
```
cd poc-backauth
```
```
bun install
```
Below command will create db tables based on schema provided in folder 'schema'
```
bunx drizzle-kit push
```
```
bun run dev
```
```
cd poc-webauth
```
install dependencies:
```
bun install
```
Run application:
```
bun run dev
```
## localhost:

## Build-With
- Bun
- Node
- Elysia JS
- drizzle orm
- better-auth
- svelte
- vite
## Author(s)
- Rajeev Kr. Aryan (@kisan-engg)