Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sclorentz/webchat

In process of redesign of the entire project...
https://github.com/sclorentz/webchat

back-end chat front-end go golang html pwa rust ts wasm website

Last synced: about 2 months ago
JSON representation

In process of redesign of the entire project...

Awesome Lists containing this project

README

        

# WebChat

I want to get experience making websites, so I decided to build a webchat to get better at frontend and backend.

Version: 6.5.1_a

## Develop by your own:

### My recomendations - Docker

If you want to develop your own version of this chat, you should get docker installed, so you don't have to worry about configure anything or make shure that this will work on your machine, is everythig already configured for you. Besides, in a virtualized environment, errors like "it works on my machine" can be avoidable. I made this to be really simple to just "enter and use" with no need for configuration.

docker logo

Docker, Inc., Apache License 2.0, via Wikimedia Commons

### Start the server

To start the server, use: `run`, this command will make shure that everything necessary to make this project work is being executed and is working correctly.

tmp: deno run ./src/frontend/scripts/ts/main.ts

## Bundle RS to WASM and JS

cargo build --target wasm32-unknown-unknown --release --target-dir=./src/frontend/scripts/web

*There have been some issues with 'wasm-pack', don't use it*

## Bundle TS to JS

**for now I will use js (again), cause the output file 'bundle.js' has over 76MB of size idk why**

deno run -A npm:create-vite@latest --template react-ts

deno compile --allow-read --allow-net --config tsconfig.json --output=./src/frontend/scripts/js/bundle.js ./src/frontend/scripts/ts/index.ts

- Compile all the TS files into one JS file
- Remove comments

## Run the server

GOARCH=386 GOOS=linux go build main.go