Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaitakami/elysiajs-drizzleORM-lucia-auth-template
Elysiajs, drizzleORM and Lucia Auth template
https://github.com/kaitakami/elysiajs-drizzleORM-lucia-auth-template
drizzle-orm elysia elysiajs lucia-auth
Last synced: 11 days ago
JSON representation
Elysiajs, drizzleORM and Lucia Auth template
- Host: GitHub
- URL: https://github.com/kaitakami/elysiajs-drizzleORM-lucia-auth-template
- Owner: kaitakami
- License: mit
- Created: 2024-06-20T14:37:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T04:07:02.000Z (4 months ago)
- Last Synced: 2024-08-01T08:09:32.099Z (3 months ago)
- Topics: drizzle-orm, elysia, elysiajs, lucia-auth
- Language: TypeScript
- Homepage:
- Size: 149 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - kaitakami/elysiajs-drizzleORM-lucia-auth-template - Elysiajs, drizzleORM and Lucia Auth template (TypeScript)
README
# Elysia + DrizzleORM + Lucia Auth template
Make sure you have Bun installed on your computer.
To install dependencies:
```sh
bun install
```To run:
```sh
bun run dev
```open `http://localhost:3001`
## How to run the app in container
1. Make sure you have Docker installed on your machine
2. Fill the environment variables
3. Run `docker build --pull -t [app_name] .`
4. If built successfully, run `docker run -p 3001:3001 [app_name]`
5. This will start running the app on localhost port 3001 so make sure you don't have any other application running on the same port.
6. Now you can use and test the API by going to `http://localhost:3001/api/[version]/[endpoint]`
7. To stop the container run `docker stop ` (you can check the ID or name of the container by running `docker ps`)
8. To remove the container run `docker rm `
9. To remove the image and free up space on your locale machine run `docker rmi ` (you can check your images by running `docker images`)- When you build a new version of your Docker image using the docker build command, it does not automatically update the running container. The running container continues to use the image version it was originally started with. To use the latest version of your image, you need to stop and remove the existing container, and then start a new container based on the updated image.