Ogre is a recreational workshop to help understand orders of magnitude of energies and what it implies for the ecological transition.
https://laconsciencedesetudiants.fr/atelier-ogre/
Our goal is to develop a web application to digitalize OGRE's workshop. It will improve the user experience and allow to scale up the reach of the workshop.
OGRE uses a number of open source projects to work properly:
- Backend
- Node.js - a JavaScript runtime
- Express - a web framework for node.js
- Frontend
- React - a JavaScript library for building user interfaces
Node, yarn and Docker must be installed locally.
- Run "yarn env:default" from root, it will set then default values in the file at /packages/server/.env
- Run "yarn install" from root, it will install all dependencies in all workspaces
- Run "yarn prepare" to initialize husky.
- Run "yarn db:up" from root, it will launch a container running a postGre database
- Run "yarn db:migrate" from root, it creates the tables in the database (must be run on a new database or after a schema change)
- Run "yarn workspace ogre-server db:generate" to generate the Prisma client from schema.
- Run "yarn workspace ogre-server dev" to launch server
- In another shell run "yarn workspace ogre-client dev" to launch client
The app can be deployed to heroku.
The "start" and "build" script are executed by default: https://help.heroku.com/P5IMU3MP/heroku-node-js-build-script-change-faq
A postGreSQL database is required, the connection string must be set as DATABASE_URL in the secrets.
A procfile is needed to run the PRISMA migrations.
https://github.com/prisma/prisma-examples/tree/latest/deployment-platforms/heroku https://www.prisma.io/docs/guides/deployment/deployment-guides/deploying-to-heroku
Node, yarn and Docker must be installed locally.
- Run "yarn env:default" from root, it will set default .env values in server
- Run "yarn install" from root, it will install all dependencies in all workspaces
- Run "yarn build" from root, it will transpile all typescript in all workspaces
- Run "yarn db:up" from root, it will launch a postGre container
- Run "yarn db:migrate" from root, it creates the tables in the database
- Run "yarn start" from root
App should be up at http://localhost:8080/
If you don't have access yet to this board please request access to admin.
Then chose an issue and there you go!
The project is under MIT license. For more information please read LICENSE file