diegoclair / backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📝 Project

Description

💳 This application aims to offer a new disruptive way to shop online.

Demo video
Pitch video

  • Language:

  • Technical architecture:

  • Database:

    • MySQL

Endpoints

Generate a new hash to use into a qrcode

POST http://34.71.109.67:3000/partner/:company_id/qrcode

Get qrcode info when user scan the qrcode

GET http://34.71.109.67:3000/qrcode/:hash

Get user addresses list

GET http://34.71.109.67:3000/user/:user_id/address

Create new order for user

POST http://34.71.109.67:3000/user/:user_id/order

Get all user orders

GET http://34.71.109.67:3000/user/:user_id/order_summary

Return the list with some morning calls created by Safra

GET http://34.71.109.67:3000/safra/morning_calls

Postman Collection to simulate the process

Import this Postman Collection in Postman.

💻 Tech infos

This application has the CICD implemented and is currently deployed into kubernetes cluster on Google Cloud Platform. The host to use GCP app is: http://34.71.109.67:3000 or if you want to run in your machine, please follow the steps below.

❗ Requirements

To run this application you have to install (if you don't have already installed) the follow programs:


▶️ Start application

Permissions first:

  • For Unix enviroment, run the comand:
    chmod +x .docker/entrypoint.sh

  • For Windows enviroment, run the comand:
    dos2unix +x .docker/entrypoint.sh

💻 Start:

  • Now, in your terminal, you can run:
    docker-compose up



About


Languages

Language:Go 97.5%Language:Dockerfile 1.9%Language:Shell 0.6%