Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.