No description
  • JavaScript 40.5%
  • Go 36.7%
  • HTML 13.9%
  • Dockerfile 7.9%
  • Nix 0.7%
  • Other 0.3%
Find a file
2022-09-18 20:27:23 -04:00
api changed dockerfile ENV variables names 2022-09-18 20:16:30 -04:00
assets updated with master and updated dependencies 2022-07-23 16:46:46 -04:00
docker-compose.yml Dockerfile and docker-compose 2022-04-27 15:51:36 -04:00
Dockerfile changed dockerfile ENV variables names 2022-09-18 20:16:30 -04:00
go.mod updated with master and updated dependencies 2022-07-23 16:46:46 -04:00
go.sum updates dependencies 2022-07-23 14:46:49 -04:00
LICENSE Initial commit 2022-03-16 18:57:30 -04:00
README.md updated with master and updated dependencies 2022-07-23 16:46:46 -04:00
shell.nix adds shell.nix :) 2022-03-16 19:40:03 -04:00

monitoring.serreets.com

Site interne du club serreÉTS permettant de surveiller une serre expérimentale sur le campus de l'ÉTS.

Dependencies

  1. go
  2. nodejs

Development

Server

You can start the server by running

$ go run api/main.go

Visit http://localhost:3001/api/hello in your web browser.

Web

You can run the web app in development mode with :

$ npm start --prefix assets
# or with yarn
$ yarn --cwd assets run start

Open http://localhost:3000 to view it in the browser.

Production

To build the web app for production, run :

$ npm run build --prefix assets
# or with yarn 
$ yarn --cwd assets build 

It bundles React in production mode to the build folder

Docker

From the root directory, run this command:

docker build -t serreets-backend . && docker build --file=assets/Dockerfile -t serreets-frontend --build-arg REACT_APP_URL=http://127.0.0.1:3001/ . && docker-compose -f docker-compose.yml up