| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
DataSpace is a platform for sharing and managing datasets. This repository contains the backend code for the DataSpace platform, built with Django and GraphQL.
The backend uses Keycloak for authentication, providing a secure and scalable solution. Key aspects of the authentication system include:
For detailed information about the Keycloak integration, see the Keycloak Integration Documentation.
Clone the repository:
git clone https://github.com/CivicDataLab/DataSpaceBackend.git
cd DataSpaceBackendCreate a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtSet up environment variables (create a .env file in the project root):
DEBUG=True SECRET_KEY=your-secret-key DB_ENGINE=django.db.backends.postgresql DB_NAME=dataspace DB_USER=postgres DB_PASSWORD=postgres DB_HOST=localhost DB_PORT=5432 KEYCLOAK_SERVER_URL=https://your-keycloak-server/auth KEYCLOAK_REALM=your-realm KEYCLOAK_CLIENT_ID=your-client-id KEYCLOAK_CLIENT_SECRET=your-client-secret
Run migrations:
python manage.py migrateInitialize roles:
python manage.py init_rolesStart the development server:
python manage.py runserverAPI documentation is available at the following endpoints when the server is running:
This project is licensed under the MIT License.
| Back | FazBrowse Home | New Git URL |