Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/M-Fisher/companies_api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/M-Fisher/companies_api

  • v0.0.0-20220909072002-8d31ce71da12
  • Source
  • Go
  • Socket score

Version published
Created
Source

Companies Service

A single service for managing Companies

📁 Project structure

/cmd

Starting point for the app

/app

Application code

/app/api

API configuration. You can add new endpoints to the app/api/enpoints Don't forget to register them in app/api/api.go

/dev

Everything related to environment. Config files, Dockerfiles and docker-compose file for local running.

/migrations

DB migrations files.

🚜 Running

Docker-compose

For development purpose project can be started using docker-compose

make dev-up-app

Environment variables can be changed in dev/compose.dev.env.

Local run

Optionally you can start environment using docker-compose, and start app in terminal:

make dev-local-env
make local-run

Environment variables can be changed in dev/local.env.

Example JWT Token

For testing purposes you can use following authorization token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMSJ9.u2tRKS4GWGieHric1tRvOFVbpEVY-lb9_cijO5_Pwt0

Also region checking is disabled for Dev environment. To enable checking - set DEVELOPMENT_MODE env to false

Reboot

docker-compose environment can be restarted using make dev-restart.

🛠 Building

Project can be build as binary file (make build) or as Docker image: make @build

👨🏼‍💻 Development

make setup - install all required dependencies for the project (e.g. golangci-lint)

make lint - linters local run (golangci-lint should be installed)

make test - running tests locally

🧪 Testing

You can run tests using

make test

📌 External dependencies

Infrastructure:

  • PostgreSQL
  • Kafka

Resoures:

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc