Giter VIP home page Giter VIP logo

productapi's Introduction

Product Rest API

Golang Echo Clean Architecture

Content

• Key Features
• Installing Using Github
• Installing Using Docker
• End Point
• Technologi that i use
• Contact me

📱 Features

  • Product
  • Category
  • Images

⚙️ Installing and Runing from Github

installing and running the app from github repository
To clone and run this application, you'll need Git and Golang installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/reski-id/productAPI.git

# Go into the repository
$ cd productAPI

# Install dependencies
$ go get

# load .env env 
# use bash cmd and type this..
$ source .env

# Run the app
$ go run main.go

Note Make sure you allready create database mysql dbproduct for this app.more info in local .env file.

⚙️ Installing and Runing with Docker

if you are using docker or aws/google cloud server you can run this application by creating a container.

# Pull this latest app from dockerhub 
$ docker pull programmerreski/productapi

# if you have mysql container you can skip this
$ docker pull mysql

$ docker run --name mysqlku -p 3306:3306 -d -e MYSQL_ROOT_PASSWORD="yourmysqlpassword" mysql 

# create app container
$ docker run --name productapi -p 80:8000 -d --link mysqlku -e SECRET="secr3t" -e SERVERPORT=8000 -e Name="productapi" -e Address=mysqlku -e Port=3306 -e Username="root" -e Password="yourmysqlpassword" programmerreski/productapi

# Run the app
$ docker logs productapi

📜 End Point

Product

Methode End Point used for
GET /products Get all products
DELETE /products/:id Delete product
PUT /products/:id Update data product
POST /products Insert product

Category

Methode End Point used for
GET /category Get all categories
DELETE /category/:id Delete category
PUT /category/:id Update data category
POST /category Insert category

Images

Methode End Point used for
GET /file Get all Images
DELETE /file/:id Delete Image
PUT /file/:id Update data Image
POST /file Insert Image

Product-Category

Methode End Point used for
GET /productcategory Get all product categories
GET /productcategory/:id Get one product categories
DELETE /productcategory/:id Delete product category
PUT /productcategory/:id Update data product category
POST /productcategory Insert product category

Product-Images

Methode End Point used for
GET /productimages Get all product images
GET /productimages/:id Get one product images
DELETE /productimages/:id Delete product images
PUT /productimages/:id Update data product images
POST /productimages Insert product images

🛠️ Technology

This software uses the following Tech:

📱 Contact me

feel free to contact me ...

productapi's People

Contributors

reski-id avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.