https://github.com/markelca/simple-chat
A simple chat application to play with websockets. Made with svelte frontend and go backend.
https://github.com/markelca/simple-chat
Last synced: about 1 month ago
JSON representation
A simple chat application to play with websockets. Made with svelte frontend and go backend.
- Host: GitHub
- URL: https://github.com/markelca/simple-chat
- Owner: MarkelCA
- Created: 2023-07-31T00:30:36.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T15:52:05.000Z (almost 2 years ago)
- Last Synced: 2025-02-11T11:52:24.063Z (3 months ago)
- Language: Go
- Homepage:
- Size: 1.07 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-chat
A simple chat application to play with websockets. Made with svelte frontend and rust/go switchable backends.## Dependencies
- [Docker Desktop](https://www.docker.com/products/docker-desktop/) (Because it uses the new `docker compose up` command).## Init
### 1. Clone the repo
```bash
git clone https://github.com/MarkelCA/simple-chat
cd simple-chat
```
### 2. Create the envs file
*(From the root folder)*
```bash
cp .env.example .env
```
Edit the .envs file with the desired parameters. You'll have to change the variables inside the <> chars. **Don't change the already defined ones, like the `VITE_SERVER_PORT`**## Frontend
(From the root folder)```bash
npm run dev
```## Backend
There's a script to run the backend server.
```bash
./start-server
```