This project uses the Nuxt framework as the foundation for the community portal.
Ensure you are using NodeJS version 14-19.
yarn
or
npm i
To get access to a running EDT Offline's API pass the EDT_HOST
variable, for example:
EDT_HOST=demo.earthdefenderstoolkit.com yarn dev
or
EDT_HOST=demo.earthdefenderstoolkit.com npm run dev
Trainer mode is a special mode designed for training purposes within the EDT Offline Portal. When activated, it configures the application to provide a tailored environment suitable for training sessions. This mode can be particularly useful for demonstrating features, conducting workshops, or onboarding new users.
To enable trainer mode, set the TRAINER
environment variable to the desired training module. For example, to activate the Mapeo training module, use the following command:
TRAINER=mapeo EDT_HOST=demo.earthdefenderstoolkit.com npm run dev
In this mode, the application will automatically redirect to the training page for Mapeo, providing access to specific training resources and tools. This ensures that trainers and trainees have a focused and streamlined experience, with all necessary materials readily available.
Set your homepage in the index.md
frontmatter.
Run:
docker run -p 3000:3000 -d communityfirst/edt-offline-portal
The application should be running on: http://localhost:3000
Use the full
tag to get the portal with all the applications pre-downloaded. Ex.:
docker run -p 3000:3000 -d communityfirst/edt-offline-portal:full
The nuxt documentation is here we decide use nuxt because is more clean and send just the html files without javascript. This is good thing for people with slow devices.
We use content as markdown implementations.
For write in markdown we can start with those instructions
About styles and css we use windcss a simplification for tailwindcss where we can find the documentations about how can use this things.