Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 891 Bytes

README.md

File metadata and controls

43 lines (33 loc) · 891 Bytes

XyChat

A chat application built with Golang, VueJS, and PostgreSQL.

REQUIREMENTS

  • Go1.16.6
  • PostgreSQL

INSTALLATION

  • Create a database in your PostgreSQL.
  • Create and modify .env file (with the same structure as .env.example). The other way is that create environment variables in your machine with the same names as .env.example.

USAGE

Run the following command in terminal for more detail

$ go run main.go -h

Some examples

Reset the database

$ go run main.go -reset

Create an admin account

$ go run main.go -admin root:p@ss

Use values in .env file instead of environment variables

$ go run main.go -dotenv

Run the application

$ go run main.go -run

Then open your browser and access the web at http://domain:port/ui/. Example: http://localhost:1999/ui.

DOCKER