Skip to content

shrish-pathak/ecomm-alpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecomm-alpha

Description

This project is a rest api for ecommerce application written in golang with some tests and uses gofiber, gorm, postgres, swagger docs, jwt.

To run the project use following steps

  • create database first in postgres, data for running tests are also required.
  • uuid-ossp extension for postgres require. run on psql --> CREATE EXTENSION "uuid-ossp";
  • create .env file in root directory of the project
  • add below lines in .env file
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=123456
DB_NAME=ecomm_alpha
SECRET=asd
  • run command: go run main.go

To run tests use following steps

  • for available tests, run commands : \

    go test .\tests\sellertests\ -v
    go test .\tests\addresstests\ -v
    go test .\tests\storetests\ -v
    go test .\tests\producttests\ -v
    go test .\tests\buyertests\ -v
    go test .\tests\carttests\ -v
    go test .\tests\ordertests\ -v

apis apis apis

About

ecommerce rest api in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages