https://github.com/connerdouglass/livechat-api
Live chat backend API server written in Go
https://github.com/connerdouglass/livechat-api
Last synced: 3 months ago
JSON representation
Live chat backend API server written in Go
- Host: GitHub
- URL: https://github.com/connerdouglass/livechat-api
- Owner: connerdouglass
- Created: 2021-09-18T15:08:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-18T15:09:41.000Z (over 3 years ago)
- Last Synced: 2025-03-18T01:51:29.298Z (3 months ago)
- Language: Go
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# livechat-api
Live chat API server written in Go.
## Development
To develop this project locally, you'll need to have Go 1.16 or newer installed on your local machine.In the root directory of the project, create a file named `.env` with the following contents:
```env
DB_URL="mysql://root@tcp(127.0.0.1:3306)/livestream?charset=utf8&parseTime=True&loc=UTC"
AUTH_TOKEN_SIGNING_PEPPER=8yfds34rtyui98uygfdw45yuouy1
CORS_ALLOW_ORIGINS=http://localhost:4200
```These are just example values. You'll probably want to change `DB_URL` for your local environment.
You can even use SQLite, if you want. An example SQLite setup would look like:
```env
DB_URL="sqlite://data.db"
```Note: Data can safely be stored in `data.db`, and it won't be checked into the Git repo.
Once you've got a `.env` file, just run this to start the server:
```sh
go run .
```