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

github.com/lsaavedra/go-chat

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/lsaavedra/go-chat

  • v0.0.0-20220814223333-391f48d1bc1f
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-chat

Project to create a simple-browser chat application with a minimal frontend and pure backend.

Diagram architecture

Overview)

Run Project
  1. Use docker-compose command to start services (Postgres, Redis and RabbitMQ):
# docker-compose up
  1. Next you can start the server with:
SERVER_HOST=localhost \
SERVER_PORT=8080 \
QUEUE_URL=amqp://guest:guest@localhost:5672/ \
CACHE_URL=localhost:6379 \
DB_HOST=localhost \
DB_PORT=7004 \
DB_USER=postgres \
DB_PASSWORD=postgres \
DB_NAME=postgres \
DB_SCHEMA=chatroom \
CACHE_URL=localhost:6379 \
go run cmd/main.go
  1. Create two random users with this curl command:
curl --request POST \
  --url http://localhost:8080/api/v1/users \
  --header 'Content-Type: application/json' \
  --data '{
	"first_name": "any_first_name",
	"last_name": "any_last_name",
	"email": "any_email",
	"nick_name": "any_nickname",
	"password": "any_pwd"
}'
  1. Open a web browser and use this url http://localhost:8080/login (use email and pwd for the users created in above bullet)

FAQs

Package last updated on 14 Aug 2022

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