Upload large files with Golang
Build App and run migration-up
make build-app
make migrate-up
Open the browser at
http://localhost:8080/
CREATE TABLE IF NOT EXISTS customers(
id SERIAL PRIMARY KEY,
cpf VARCHAR (14) NOT NULL,
private INT NOT NULL,
incomplete INT NOT NULL,
date_last_purchase TIMESTAMP,
average_ticket DECIMAL(10,2) DEFAULT(0.00),
last_purchase_ticket DECIMAL(10,2) DEFAULT(0.00),
most_frequent_store VARCHAR(18),
last_purchase_store VARCHAR(18),
created_at TIMESTAMP DEFAULT 'now()'
);
make tools
make build-app
make build-local
make run
make docker-run
make docker-down
make migrate-up
make migrate-down
make test-local
make clean-local
make watch
.PHONY: test
test:
@go test -coverprofile=cover.out ./...
.PHONY: clean
clean:
@rm -f cover.*