{"id":17473749,"url":"https://github.com/ottemo/commerce","last_synced_at":"2025-10-30T21:02:17.919Z","repository":{"id":17411022,"uuid":"20183827","full_name":"ottemo/commerce","owner":"ottemo","description":"API Server for Ottemo","archived":false,"fork":false,"pushed_at":"2019-08-13T10:15:38.000Z","size":3416,"stargazers_count":12,"open_issues_count":8,"forks_count":3,"subscribers_count":15,"default_branch":"develop","last_synced_at":"2025-04-22T10:47:01.849Z","etag":null,"topics":["api","commerce","commerce-suite","ecommerce-platform","go","golang","ottemo","rest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ottemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-26T11:21:14.000Z","updated_at":"2023-05-11T15:34:43.000Z","dependencies_parsed_at":"2022-09-26T21:31:06.985Z","dependency_job_id":null,"html_url":"https://github.com/ottemo/commerce","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ottemo/commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottemo%2Fcommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottemo%2Fcommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottemo%2Fcommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottemo%2Fcommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottemo","download_url":"https://codeload.github.com/ottemo/commerce/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottemo%2Fcommerce/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262950351,"owners_count":23389644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","commerce","commerce-suite","ecommerce-platform","go","golang","ottemo","rest"],"created_at":"2024-10-18T18:06:55.172Z","updated_at":"2025-10-30T21:02:17.907Z","avatar_url":"https://github.com/ottemo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ottemo\n=========\n\n[![GoDoc](https://godoc.org/github.com/ottemo/commerce?status.svg)](https://godoc.org/github.com/ottemo/commerce)\n[![Go Report Status](https://goreportcard.com/badge/github.com/ottemo/commerce)](https://goreportcard.com/report/github.com/ottemo/commerce)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/14a33aebbca74eae96205e625c78fb51)](https://www.codacy.com/app/Ottemo/commerce?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ottemo/commerce\u0026amp;utm_campaign=Badge_Grade)\n[![GitHub version](https://badge.fury.io/gh/ottemo%2Fcommerce.svg)](https://badge.fury.io/gh/ottemo%2Fcommerce)\n\na small, wicked fast ecommerce platform built for gophers\n\n## Install and Setup\n\nCommerce supports golang versions 1.7+ and requires you to [install the lastest stable version of dep](https://golang.github.io/dep/docs/installation.html) to manage installation of dependencies. Before you run commerce for the first time, you need to create an empty database and create a user which will have permissions to create/update/insert/delete. \n\nDownload commerce to your desired GOROOT \n```\n# on my local GOROOT is found at ~/code/go\n\u003e cd ~/code/go/src/github.com\n\n# create a directory for ottemo\n\u003e mkdir ottemo\n\n# clone the repository\n\u003e git clone https://github.com/ottemo/commerce\n```\n\nInstall and update dependencies for commerce\n```\n# change into the commerce directory\n\u003e cd commerce\n\n# run dep ensure to install dependencies\n\u003e dep ensure\n```\n\nBuild commerce with support for MySQL. There is a build script which adds in extra information, but this is not required.\n```\n# there is a build script in the bin directory\n\u003e bin/make.sh -tags mysql \n```\n\nNote, you may also build commerce using the `go build` command, but remember to tell it which version of the database drivers to use. For instance - `go build -tags mysql`\n\nThe final step before running commerce for the first time is to configure a few basic settings. There exists a sample configuration file which follows the ini file format. \n```\n# copy the sample file\n\u003e cp ottemo.sample.ini ottemo.ini\n```\n\nNow edit the file with your favorite editor. Here is a basic version of the file for MySQL. Change the values USER and PASSWORD according to the credentials you created when first setting up the empty database. \n```\n; minimal settings for mysql driver\ndb.mysql.db=commerce\ndb.mysql.maxConnections=50\ndb.mysql.poolConnections=10\ndb.mysql.uri=USER:PASSWORD@/commerce\n\n; let commerce know where to find/store images and videos\nmedia.fsmedia.folder=./media/\nmedia.resize.images.onfly=true\n\n; if you are doing development and not using HTTPS to access commmerce set this to false \nsecure_cookie=false\n\n; to allow cross domain cookies set your desired domain (we do use cross domain cookies)\nxdomain.master=http://*.local.dev/\n```\n\nNow you may run commerce from the commandline\n```\n\u003e ./commerce\n```\n\nYou should a message similiar to the following  printed to stdout:\n```\n2019-04-25T15:57:45Z Connecting to MySQL DB. Timeout: 10 seconds.\nOttemo v1.4.5-jwv_basic_build_run_instructions_497-b1489 (mysql) [2019-04-25T08:57:18-07:00]\nREST API Service [HTTPRouter] starting to listen on :3000\n2019-04-25T15:57:45Z DB connection established.\n```\n\nCommerce will create a `var` folder which will contain logs folder and a session folder, since we didn't compile it to use redis for sessions, (which is typical for local development).\n\n\n## License\n\n[Mozilla Publice License 2.0](LICENSE.md)\n## Terms and Conditions\n\nAll Submissions you make to Ottemo, Inc. (“Ottemo”) through GitHub are subject to the following terms and conditions:\n\n1. You grant Ottemo a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publicly perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission”) you submit through GitHub.\n2. Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above.\n\n### Copyright\n© 2019 Ottemo, Inc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottemo%2Fcommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottemo%2Fcommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottemo%2Fcommerce/lists"}