Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 1.58 KB

README.md

File metadata and controls

77 lines (56 loc) · 1.58 KB

infomosaic_logo

See your system information momentarily and side by side like mosaics🧩

Minimal 🔌websocket project written with Golang and Reactjs

infomosaic_screen_dark infomosaic_screen_light

How to use:

⚠️ Before use: do not forget to add .env file .it is necessary for docker compose file and golang main file. best sample:

.env file.

INFOMOSAIC_PORT=8080
INFOMOSAIC_CLIENT_PORT=3000

🐳Run with Docker:

1.

git clone https://github.com/pooulad/infomosaic.git

2.

cd ./infomosaic

3.

docker compose up -d --build

These commands create 2 separate services for front-end and back-end, both of which are ready to work with each other

✅client container : infomosaic-client-container
✅server container : infomosaic-server-container

You can check logs with this command:

docker compose logs

✋Run manually:

1.

git clone https://github.com/pooulad/infomosaic.git

2.

cd ./infomosaic

3.

go mod tidy
go run ./cmd/main.go

You should see this log in terminal:

Starting Infomosaic🧩 server on port YOUR_PORT

Open another terminal and run:

4.

cd ./frontend
yarn install
yarn dev

Now your client is runnig too. enjoy it🤠