monitoring.serreets.com

module
v0.0.0-...-9010660 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2022 License: GPL-3.0

README

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

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL