New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gxravel/bus-routes

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gxravel/bus-routes

  • v0.0.0-20210712015429-1d64c81fdd26
  • Source
  • Go
  • Socket score

Version published
Created
Source

Сервис для отслеживания маршрутов общественного транспорта

Описание

На данном этапе проект представляет собой простой CRUD для таких сущностей, как

type Bus struct {
	ID     int64  `json:"id,omitempty"`
	CityID int    `json:"city_id,omitempty"`
	Num    string `json:"num"`

	City string `json:"city,omitempty"`
}
type City struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name"`
}
type Stop struct {
	ID      int64  `json:"id,omitempty"`
	CityID  int    `json:"city_id,omitempty"`
	Address string `json:"address"`

	City string `json:"city,omitempty"`
}
type Route struct {
	BusID  int64 `json:"bus_id"`
	StopID int64 `json:"stop_id"`
	Step   int8  `json:"step"`
}

Зависимости

  • Go 1.16
  • MySQL 8+

Подготовка окружения - установка необходимых программ, генерирование кода и конфигурации:

$ make prepare.tools
$ make gen.config.local

Сборка

$ make build

Запуск

Локальный

Запуск бинарного файла с предварительной сборкой:

$ make run

Проверки (запуск линтеров)

Проверка спецификации swagger:

make check.swagger

Проверка кода линтерами:

make lint

Проверка всего:

make check

Генерация миграций

make migration name=add_some_column

FAQs

Package last updated on 12 Jul 2021

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