Git Product home page Git Product logo

gochat's Introduction

gochat

build Go Report Card License

Gochat is a simple chatting application, created for learning purposes.

Running the application

  1. Gochat uses godotenv to store local env variables. Add .env file to the root directory, with following structure:
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
POSTGRES_PORT=
POSTGRES_HOST=

PGADMIN_DEFAULT_EMAIL=
PGADMIN_DEFAULT_PASSWORD=

REDIS_HOST=
REDIS_PORT=
REDIS_PASSWORD=

API_SECRET=

GOCHAT_ADMIN_PASSWORD=
GOCHAT_ADMIN_EMAIL=

  1. Run go install to compile and install all required packages and dependencies.
  2. Run docker-compose up to start Gochat API and all required dependencies.

Debugging

There is VSC launch configuration available in the repository. In order to run Gochat API using VSC debugging, run docker-compose up postgres redis or ./scripts/run_deps.sh, and then start [Gochat] Launch API VSC configuration.

Development

Prerequisites

  1. Install golangci-lint
  2. Set your IDE to use golangci-lint (instructions)
  3. Install python3
  4. Run git config core.hooksPath .githooks to wire up project's git hooks
  5. Install migrate CLI

Conventions

This repository follows ConventionalCommits specification for creating commit messages. There is prepare-commit-msg hook set up to ensure following those rules. Branch names should also reflect the type of work it contains - one of following should be used:

  • feature/<task-description>
  • bugfix/<task-description>
  • chore/<task-description>

gochat's People

Contributors

el-mike avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.