-
Install Docker and docker-compose
-
create
.envfile with:DATABASE_URL=postgres://postgres:postgrespw@localhost:5432 POSTGRES_PASSWORD=postgrespw
-
Build Dockerimage by running
docker build -t rust-api .
-
Run following command in your terminal
docker compose up or docker-compose up
-
Open up your broser or API tester like Postman and head to
localhost:3000