Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/m-fisher/companies_api
A single service for managing Companies
/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.
For development purpose project can be started using docker-compose
make dev-up-app
Environment variables can be changed in dev/compose.dev.env.
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.
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
docker-compose environment can be restarted using make dev-restart
.
Project can be build as binary file (make build
) or as Docker image: make @build
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
You can run tests using
make test
Infrastructure:
Resoures:
FAQs
Unknown package
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.