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

github.com/vitorvvc/api-postgressql

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/vitorvvc/api-postgressql

  • v0.0.0-20240813210150-68803cd462f6
  • Source
  • Go
  • Socket score

Version published
Created
Source

Todo APP

This README is on english, but i have in another langueages: PT-BR

This project is an API built in Go that interacts with a PostgreSQL database. The frontend is a React application that consumes this API.

Prerequisites

Project Setup

1. Clone the Repository

Clone the repository to your local machine:

git clone https://github.com/your-username/your-repository.git
cd your-repository/api-postgresql

2. CSet Up Environment Variables

Create a .env file in the root directory of the api-postgresql project with the following content:

DATABASE_URL=postgresql://user:password@db-host:port/db-name?sslmode=require
API_PORT=4000
POSTGRES_HOST=your_host
POSTGRES_PORT=your_postgres_port
POSTGRES_USER=your_user
POSTGRES_PASS=your_pass
POSTGRES_NAME=your_name

3. Build and Start the Containers

Use Docker Compose to build and start the containers:

docker-compose up --build

4. Access the Application

Useful Commands

Stop the Containers

docker-compose down

View Logs

docker-compose logs -f

Remove Containers, Networks, and Volumes

docker-compose down -v

Contribution

Contributions are welcome! Please submit a pull request or open an issue to discuss what you would like to change.

FAQs

Package last updated on 13 Aug 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