- Notifications
You must be signed in to change notification settings - Fork12
golangci/golangci-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains code of API.
Go (golang), heroku, circleci, docker, redis, postgres.Web framework is a go kit wrapped with acode generation.
Run:
docker-compose up -decho "create database api_prod;" | docker-compose exec -T pg psql -UpostgresIt runs postgres and redis needed for both api and worker.
make run_apimake run_worker
Configurate via.env file. Dev.env may be like this:
WEB_ROOT="https://dev.golangci.com"API_URL="https://api.dev.golangci.com"GITHUB_CALLBACK_HOST=https://api.dev.golangci.comDATABASE_URL="postgresql://postgres:test@localhost:5432/api_prod?sslmode=disable"REDIS_URL="redis://127.0.0.1:6379"PORT=3000APP_NAME="GolangCI Dev"Tests need.env.test file, overriding options from.env. There can be something like this:
DATABASE_URL="postgresql://postgres:test@localhost:5432/api_test?sslmode=disable"DATABASE_DEBUG=1echo "CREATE DATABASE api_test;" | docker-compose exec -T pg psql -U postgresmake testRun golangci-web, golangci-worker and golangci-api. Go tohttps://dev.golangci.com locally and it will work.
To use Subscriptions you will need to configure the env variables for the gateway of your choice.
- Note: Currently only SecurionPay is supported and uses
SECURIONPAY_SECRETandSECURIONPAY_PLANID.
Runngrok http 3000 on your development machine, and usehttps://{ngrok_id}.ngrok.io/v1/payment/{gateway}/events as URL to receive events from the payment gateway.
{gateway}for SecurionPay issecurionpay.{ngrok_id}'s are unique and you must update the callback URL when you restart Ngrok service.
SeeCONTRIBUTING.
About
API of GolangCI
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.