This is lab 1 for the course Innovation of Cloud Service and Development Tools at NYCU, Spring 2023.
- Docker Compose
- Diesel CLI (with
pg
)- Install Rust first if you don't have it.
- Then run
cargo install diesel_cli --no-default-features --features postgres
- Clone this repository.
git clone https://github.com/wst24365888/icsdt-lab1.git
cd icsdt-lab1
- Create
prod.env
file in the root directory of this project, and fill in the environment variables according toenv.example
. - Create
db.env
file in the root directory of this project, and fill in the environment variables according todb.env.example
. - Start the database and the app. The app will be available at http://localhost:8100
docker compose up -d
- Run the migrations.
diesel migration run