Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/brianlusina/quote-api
Simple API to fetch quotes and add quotes.
A couple of things that you will need to set up the API up and running.
You will need to install the Go 1.18 in order to run the application.
Docker and Docker Compose
You will need to install Docker & docker compose in order to run services the application uses.
Installation of dependencies can be done by running the following command:
make install
This install dependencies.
Before running the application, first setup environment variables.
cp .env.sample .env
sets up environment variables from .env.sample file. Set these environment variables approprately. The db configuration settings have been set to reasonable defaults.
now run the services specified in docker-compose.yml file.
docker-compose up
Now we can run the application with the following command:
make run
# or
go run app/cmd/main.go
This will run the application on port 8080.
Testing the application can be done by running the following command:
make test
Runs the tests.
Running test coverage can be done with:
make test-coverage
Applicationg linting can be done by first setting up golangci-lint:
make setup-linting
This installs the golangci-lint tool in the bin directory.
Now, linting can be run with the below command:
make lint
Runs linting.
Additionally, linting can be done on the Dockerfile with hadolint.
make lint-docker
This will run linting on the Dockerfile.
This uses Docker to run the linting.
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.