chairemobilite / evolution

Online survey platform for travel survey
MIT License
4 stars 9 forks source link

demo: Add a working demo_generator example #794

Open tahini opened 17 hours ago

tahini commented 17 hours ago

Update the example .xlsx file so it works with the current version of the generator.

Add the demo_generator example project, empty of all code so it can be entirely built and compiled at dev time.

Note that the demo_generator is not a complete survey as it is missing the server bootstrapping files for frontend and backend, it is only there to make sure the generated code correctly compiles.

To generate the code, run yarn generateSurvey:example after having done the poetry install in the packages/evolution-generator folder. Then to compile the generated code and make sure it still works, run the yarn workspace demo_generator compile:example command.

tahini commented 15 hours ago

En fait, je vais enlever de ce demo et du package.json tout ce qui ne fonctionne pas de toute façon (build:dev, config.js, start), question d'être bien conscients que c'est pas supporté et nous forcer à pas juste copier-coller d'ailleurs le jour où on pourra l'ajouter parce que l'entièreté sera généré/configuré sans une ligne de code!!