This software is a client for VPL ++ to allow to moodle teachers creates projects, test and test cases. Also, the teacher can generate reports about the projects and students. In the other hand, the Moodle manager can manage the topics and the access of VPL ++ JLib Runner
- run
npm install
- run
mv .env.example .env
- Open
.env
file and configure the environment variables. (Go to building section to know what variables are needed)
- npx
- node v8 or greater
- run
npm start
- run
npm run build
After install you can serve the client using serve package. That package mount a simple web server ready to go.
- install serve:
npm install -g serve
- run:
npm install $PATH_TO_BUILD_FOLDER
The container only exposes the port 80, if you want to open another port please use port mapping.
version: "3.3"
services:
client:
container_name: vplclient
build: ./vplplusplus_client
ports:
- "3000:80"
docker-compose build client
- NODE_ENV: environment name
- REACT_APP_ENV: the same that NODE_ENV
- REACT_APP_PUBLIC_URL: public url
- REACT_APP_API_BASEURL: VPL api url
- REACT_APP_CLIENT_ID: google api key for your app. Required to use gAuth
version: "3.3"
services:
client:
container_name: vplclient
build: ./vplplusplus_client
environment:
NODE_ENV: production
REACT_APP_ENV: production
REACT_APP_PUBLIC_URL: /
REACT_APP_API_BASEURL: http://api:1337/api/v1
REACT_APP_CLIENT_ID: your-g-key.apps.googleusercontent.com
ports:
- "3000:80"