{"id":40952444,"url":"https://github.com/arbisoft/session-portal-backend","last_synced_at":"2026-01-22T05:15:27.284Z","repository":{"id":273809865,"uuid":"877882258","full_name":"arbisoft/session-portal-backend","owner":"arbisoft","description":"Arbisoft Sessions Portal Backend","archived":false,"fork":false,"pushed_at":"2025-09-11T02:34:25.000Z","size":177,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-11T05:58:49.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sessions.arbisoft.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arbisoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-24T12:08:15.000Z","updated_at":"2025-09-11T02:32:58.000Z","dependencies_parsed_at":"2025-01-23T05:25:31.684Z","dependency_job_id":"33e1aea3-e8a4-4455-92c7-abe5daec9772","html_url":"https://github.com/arbisoft/session-portal-backend","commit_stats":null,"previous_names":["arbisoft/session-portal-backend"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/arbisoft/session-portal-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbisoft%2Fsession-portal-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbisoft%2Fsession-portal-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbisoft%2Fsession-portal-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbisoft%2Fsession-portal-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arbisoft","download_url":"https://codeload.github.com/arbisoft/session-portal-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arbisoft%2Fsession-portal-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28655489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T05:15:26.607Z","updated_at":"2026-01-22T05:15:27.276Z","avatar_url":"https://github.com/arbisoft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arbisoft Sessions Portal\n[![python](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge\u0026logo=python\u0026logoColor=blue)](https://www.python.org) [![Django](https://img.shields.io/badge/Django-092E20?style=for-the-badge\u0026logo=django\u0026logoColor=green)](https://docs.djangoproject.com/en/4.2/) [![PostgresSQL](https://img.shields.io/badge/PostgreSQL-316192?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)](https://formulae.brew.sh/formula/postgresql@14)\n\nSetup Guide to setup project from scratch.\n\n- Covered OS:\n    * macOs\n- Table of Contents\n  * [Create file for environment variables](#set-up-environment-variables)\n  * [Code Setup](#code-setup)\n  * [Option 1: Setup using Virtual Environment](#option-1-setup-using-virtual-environment)\n    + [Python 3.12](#python-312)\n      - [Install pyenv](#install-pyenv)\n      - [Install Python 3.12](#install-python-312)\n    + [PIP](#pip)\n    + [PostgreSQL](#postgresql)\n      - [Install using brew](#install-using-brew)\n      - [Start service](#start-service)\n    + [Install, Create and Activate Virtual Environment](#install-create-and-activate-virtual-environment)\n    + [Install pyenv-virtualenv:](#install-pyenv-virtualenv)\n    + [Install dependencies:](#install-dependencies)\n    + [Database setup](#database-setup)\n    + [Create local.py file](#create-localpy-file)\n    + [Modify database settings for local db](#modify-database-settings-for-local-db)\n    + [Migrate](#migrate)\n    + [Run server](#run-server)\n  * [Option 2: Set up using Docker](#option-2-set-up-using-docker)\n    + [Install Prerequisites](#prerequisites)\n    + [Build and Start Containers](#build-and-start-docker-containers)\n\n## Set up Environment Variables\nCreate `.env` file at the root of the project from the following and set the variables:\n```bash\nDB_NAME=asp\nDB_USER=\u003cyour postgres user\u003e\nDB_PASSWORD=\u003cyour postgres password\u003e\nDB_HOST=\u003cyour postgres host \u003e\nDB_PORT=5432\n\nDJANGO_PORT=\u003cdjango server port\u003e\nDJANGO_SECRET_KEY=\u003cdjango secret key\u003e\nDJANGO_DEBUG=\u003cdjango debug flag\u003e\n```\n\n## Code setup\n### Create local.py file\nOn root of your project run the command\n```bash\n$ cp arbisoft_sessions_portal/settings/local.example.py arbisoft_sessions_portal/settings/local.py\n```\n\n## Option 1: Setup Using Virtual Environment\n### Python 3.12\n#### Install pyenv\n```bash\n$ brew install pyenv\n$ echo 'eval \"$(pyenv init -)\"' \u003e\u003e ~/.zshrc\n$ source ~/.zshrc\n```\n#### Install Python 3.12\n```bash\n$ pyenv install 3.12\n```\n### PIP\nInstall pip3 by running:\n```bash\n$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py\n$ python get-pip.py\n```\n### PostgreSQL\n#### Install using brew\n```bash\n$ brew install postgresql@16\n```\n#### Start service\n```bash\n$ brew services start postgresql@16\n```\n\n### Install, Create and Activate Virtual Environment\n#### Install pyenv-virtualenv:\nInstall pyenv-virtualenv with homebrew and add its init to your .zshrc\n```bash\n$ brew install pyenv-virtualenv\n$ echo 'eval \"$(pyenv virtualenv-init -)\"' \u003e\u003e ~/.zshrc\n$ source ~/.zshrc\n```\nCreate a virtual environment (with Python 3.12.6) for the asp project and activate it:\n```bash\n$ pyenv virtualenv 3.12.6 venv-3.12.6\n```\nYou can set it as default for the repo (activated each time you enter the project's directory). Execute the following from the root of the repo:\n```bash\n$ pyenv local venv-3.12.6\n```\nOr, alternatively, you can activate it manually and work while it is on:\n```bash\n$ pyenv activate venv-3.12.6\n```\n### Install dependencies:\nAt project root run the following command to install dependencies:\n```bash\n$ pip install -r requirements/base.txt\n```\n### Database setup\nCreate a new database using command\n```bash\n$ createdb asp\n```\n\n### Migrate\nApply the migrations\n```bash\n$ python manage.py migrate\n```\n\n### Run server\nRun the server\n```bash\n$ python manage.py runserver\n```\n\n## Option 2: Set Up Using Docker\n\n### Prerequisites\nBefore you begin, ensure that you have the following installed:\n\n- Docker: https://docs.docker.com/engine/install/ubuntu/\n- docker-compose: https://docs.docker.com/compose/install/\n\n\n### Build and Start Docker Containers\nThis command will rebuild and start all the services using the configuration defined in docker-compose.yaml\n\n```bash\nexport GID=$(id -g)\nexport UID=$(id -u)\ndocker-compose up --build \n```\n\nOnce the containers are up, check the API connection by visiting http://localhost:${DJANGO_PORT} to ensure the Django app is running properly.\n\n### Run Linting\nTo run linting for the project, use the following command:\n\n```bash\ndocker-compose --profile dev up lint\n```\n\n### Run Tests\nTo run test for the project, use the following command:\n\n```bash\ndocker-compose --profile dev up test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbisoft%2Fsession-portal-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farbisoft%2Fsession-portal-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farbisoft%2Fsession-portal-backend/lists"}