Git Product home page Git Product logo

go-ecommerce-api's Introduction

go-ecommerce-api

Knowledge in project

  • Migration
  • Seeder
  • Command
  • MVC model
  • Gorm, Gin, PostgreSql
  • Docker, docker-compose

Functionality

  • Authentication (login, register, logout)
  • Authorization (admin, user)
  • Cart basic + checkout
  • Manage resource (product, category) for admin
  • Manage profile for user

How to use ?

  1. Install Golang with version > 1.2, Install gow to run server local: https://github.com/mitranim/gow
  2. git clone https://github.com/donghuynh99/go-ecommerce-api.git
  3. Go to project
  4. go mod tidy
  5. docker-compose up -d (Create postgreSql and get credential to connect)
  6. cp .env.example .env
  7. Update .env file like this
APP_NAME=Ecommerce API
APP_PORT=8080
APP_URL=http://localhost:8080
POSTGRESQL_DB=ecommerce_api
POSTGRESQL_HOST=localhost
POSTGRESQL_PORT=5432
POSTGRESQL_USER=root
POSTGRESQL_PASSWORD=pass
LANGUAGE=en
  1. go run main.go db:migrate
  2. go run main.go generate:admin [email protected] pass (You also change email and password that you want)
  3. Import file collection ecommerce_api.json to your postman application. And Import file enviroment ercommerce_api_environment.json.
  4. ~/go/bin/gow run . To serve your application.

go-ecommerce-api's People

Contributors

donghuynh99 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.