Skip to content

matheusavi/avicrawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run it?

go run .\cmd\api\main.go

Or simply

docker compose up

Try it:

http://localhost:3457/crawl?url=https://en.wikipedia.org/wiki/Futures_and_promises

It'll save the pages data at the database.

How to create migrations?

You'll need golang-migrate installed:

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

Then you can execute the following command to create a migration:

migrate create -ext sql -dir cmd/migrate/migrations -seq my_migration_name  

How to debug the app?

Execute:

go install -v github.com/go-delve/delve/cmd/dlv@latest

Then hit F5 at visual studio code.

How to build the docker image?

docker build -t avicrawler

How to run the app through docker?

docker run --publish 3457:3457 --name avicrawler avicrawler

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published