SMS Task is a Student Management System tool.
- Create a database in PostgreSQL and add its URL as a flag while running the app with
-url
flag.
- Create a test.sh file in root directory. Add executable with
chmod +x test.sh
. - Then put this piece of code in it.
#!/bin/bash
go test ./... -cover -url="postgresql://{user}:{password}@{db url}/{db name}?sslmode=disable"
- Then you can run make test command.
make test
-
Create Dockerfile and Docker Compose file.
-
Run the app.
docker compose up
- You can check out the endpoints with inputs via PostMan by opening this
- Twitter - @dev_bck