It's a service that shows random quotes, allows to like them and show quote that is pretty similar to a specified one
-
Run
go mod downloadcommand to download dependenciesgo mod download
Or you can initialize everything with the following taskfile command. In that case, you can skip point 2 and start from point 3:
task init && nano .env -
Copy the .env.example file to
.envand change variables to what you needcp .env.example .env && nano .env -
Start the postgres database
i NOTE: If you're starting the program by running the taskfile command, you can skip this step because db will start up automatically
export POSTGRES_PORT=5432 POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_DB=quotes cd containers && docker-compose -f database.yml up -d && cd ..
Or use next taskfile command:
task db
-
Run the following command to start server:
go run main.go
Or you can run
Run httpconfiguration if you are usingGolandOr you can run the following taskfile command:
task run
-
Import postman
Quotescollection intoPostmanprogram or yaakQuotescollection intoYaakprogram⚠ WARNING: Postman
Quotescollection contains only http requests, because of Postman limitations, so if you want to send graphql or grpc requests it's better to start with YaakQuotescollection. -
Send request throw
PostmanorYaak