-
Notifications
You must be signed in to change notification settings - Fork 8
Live deploymentΒ #138
Description
π―Main Goal
We need to deploy a production version of the website (and the calculator?)
π Domain name
The domain name is not decided yet.
π Provider
We did not identify any host/provider yet.
An host that is commonly used by Data for Good would probably be better
π The repository
The branch to be deployed is main.
The repository is organized under two folders:
frontendbackend
But be careful, the name of the folders are confusing.
The fronted folder refers to the website, but it also has some pages being server-side rendered.
The backend folder refers to the calculator.
The website (frontend folder)
The website is created with React and Next.js :
https://github.com/dataforgoodfr/13_empreinte_souffrance/tree/main/frontend
Since there is some server-side rendering, I assume It cannot be deployed as a static website only.
Here is nextjs docs regarding deployment that may be useful :
- https://nextjs.org/docs/app/getting-started/deploying
- https://nextjs.org/docs/app/guides/self-hosting
I guess that the best way is probably to use Docker to ensure portability between providers.
The calculator part (backend folder)
It's written in Python.
It does not have any specific requirements.
It will be used as a regular web backend (exposing an API and running Python scripts)
https://github.com/dataforgoodfr/13_empreinte_souffrance/tree/main/backend
Database (not yet)
There is no database yet.
I don't think we need to configure one now, but maybe in the future we'll need a database.