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

github.com/dilyara4949/flight-booking-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dilyara4949/flight-booking-api

  • v0.0.0-20240902065038-79859ef72cb9
  • Source
  • Go
  • Socket score

Version published
Created
Source

flight-booking-api

api for booking flight tickets

Redis

Create docker container for redis with following command:

docker run -d --name redis -p 6379:6379 redis redis-server --requirepass "12345"

Database

Command to run container for project's database:

docker network create my_network
docker run --name postgre --network my_network \
 -e POSTGRES_PASSWORD=12345 -p 5432:5432 -d postgres

Migration

To work on with PostgreSQL database, make sure to migrate up, change DB_URL connection variable in makefile as your postgres configuration and then run:

make migrate-up

Redis

Create docker container for redis with following command:

docker run -d --name redis -p 6379:6379 redis redis-server --requirepass "12345"

Configs

Do not forget to set all needed configuration variables:

make export_env
source set_env.sh

After initializing all the necessary dependencies, you can run project:

go run cmd/main.go

Testing

to test integration tests:

make testintegration

Before testing migrate up testing database by command:

make migrate-up-test

also set config variables as below example:

make export_env
source set_env.sh

FAQs

Package last updated on 02 Sep 2024

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