“From emotions to materials, it's all about buying and selling” ― Mehnaz Ansari
API REST used by zejiran/frontend-simple-buyers-platform that is a simple buyer platform on Vue.js.
- Language: Go.
- Database: MySQL (It was Dgraph. After trying to use it for a while and can't get a good result, I have decided to use a different database. I would try to use it on this project when more documentation about Dgraph release).
- API Router:
chi
. - Interface: Vue.js & Vuetify.
- Allows loading data from an endpoint based on a specific date.
- Download, process and store in a local database.
- By default, loads actual day.
- List of products of the day.
- List of buyers of the day.
- List of transactions of the day.
- List all people that have bought on the platform.
- Use a local database with loaded data, day does not matter.
Gets ID of buyer and return:
- Shopping history.
- Other buyers using same IP.
- Some product recommendations that people also bought.
- Make sure you have installed all Go dependencies with
go install
. - Run
make letsgo
for generate CSV and JSON files from endpoints.
- Now you have started our backend server and uploaded data to MySQL database.
- If your URL to database is different, change
tester:@tcp(localhost:3306)/
on line 30 api-rest/database/database.go with your own URL and user for MySQL. - Return to Frontend, for setting up UI and see our web app up and running.
-
docker build -t computational-infrastructure/backend-simple-buyers-platform:1.1 .
-
docker-compose -f deploy.yaml up
- MIT license
- Copyright 2020 © Juan Alegría.