https://github.com/aphp/cohort360-back-end
Backend of the Cohort360 web app @ https://github.com/aphp/Cohort360-FrontEnd and the Administration Portal @ https://github.com/aphp/Cohort360-AdministrationPortal
https://github.com/aphp/cohort360-back-end
administration api cohort portal
Last synced: about 1 year ago
JSON representation
Backend of the Cohort360 web app @ https://github.com/aphp/Cohort360-FrontEnd and the Administration Portal @ https://github.com/aphp/Cohort360-AdministrationPortal
- Host: GitHub
- URL: https://github.com/aphp/cohort360-back-end
- Owner: aphp
- License: apache-2.0
- Created: 2020-10-05T15:34:54.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T07:28:03.000Z (about 1 year ago)
- Last Synced: 2025-04-08T08:31:44.228Z (about 1 year ago)
- Topics: administration, api, cohort, portal
- Language: Python
- Homepage:
- Size: 2.72 MB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/aphp/Cohort360-Back-end/actions)
[](https://sonarcloud.io/dashboard?id=aphp_Cohort360-Back-end)


Table of Contents
## About the project
**Cohort360-Back-end** serves as the backend of two main web applications: **Portail** & [**Cohort360**](https://github.com/aphp/Cohort360).
**Portail** provides capabilities to manage and control access to EDS data (Entrepôts de Données de Santé).
The main functionalities are:
* Allow users to give access to other users over patient nominative or pseudonymized data.
* Provide users with managing roles in order to allow other users to control accesses.
* Allow **Cohort360** users to export their cohorts and download them in CSV format or transfer them to Jupyter
workspaces.
* Allow admins to manage Jupyter workspaces
### Built With
Here is a list of major frameworks used here.
* [Django](https://www.djangoproject.com)
* [Django REST Framework](https://www.django-rest-framework.org/)
* [PosgreSQL](https://www.postgresql.org/)
* [Redis](https://redis.io/)
* [Celery](https://docs.celeryproject.org/en/stable/)
* [DRF-YASG (Swagger Generator)](https://drf-yasg.readthedocs.io/en/stable/)
## Project setup
### 1. Get the code
```sh
git clone https://github.com/aphp/Cohort360-Back-end.git
```
### 2. Configuration
* Create a **.env** file in the _admin_cohort_ directory following the **.setup/.env.example** format
* Create a **perimeters.csv** file in the _.setup_ directory following the **.setup/perimeters.example.csv** format
### 3. Setup
```sh
cd Cohort360-Back-end/.setup
chmod +x setup.sh
bash setup.sh
```
* Server running at: `localhost:8000`
* API details at: `localhost:8000/docs`
## Deployment on local infrastructure
coming soon
## Contributing
1. Clone the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request with _main_ branch
## Contact
open-source@cohort360.org