Skip to content
Snippets Groups Projects
Select Git revision
  • develop default protected
  • issue/96-home-bd
  • issue/84-FIX-followers-route
3 results

backend-mecred

  • Clone with SSH
  • Clone with HTTPS
  • Richard Fernando Heise Ferreira's avatar
    Issue #71: ADD production envs
    
    See merge request !72
    dd184a51
    History

    Running for dev

    1. install docker https://docs.docker.com/engine/install/ubuntu/

    2. Install bun https://bun.sh/docs/installation

    2.1. Be sure you got a version that's above 1.2.13.

    1. To install dependencies:

       bun install
       cp .env.example .env
    2. Get the container up and running:

       docker compose --profile test up
    3. set dev db

       bun db:generate
       bun db:migrate
       bun db:seed
    4. Run dev server:

       bun run dev
    5. open http://localhost:3000

    Running for production

    1. Make a copy of .env.example to .env mv .env.example .env

    2. Set env vars in .env

    3. Get the container up and running: docker compose --profile prod up --build -d

    4. Server is now running in http://localhost:3000