Skip to content

fatihy101/go-filter-products

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filter Products

  • A basic Go app with mongo driver for filtering the products.

To Configure

  • Import your data to MongoDB and change flags/config.json file. (Don't forget to change DBNAME)
  • Change collection name which is located in the db/db.go
    • Default is const collectionName = "clothes". You can change as you like.

Usage

  • in terminal: go run .

Some Example Filterings

  • products?productName=slim&productColor=gri&productCompany=defacto
  • products?productName=jean&gender=kadın&productCompany=koton
ps. Parameters are case insensitive.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages