{"id":22731048,"url":"https://github.com/genentech/spex_backend","last_synced_at":"2025-03-30T01:29:47.233Z","repository":{"id":72633823,"uuid":"535896001","full_name":"Genentech/spex_backend","owner":"Genentech","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-23T04:16:36.000Z","size":736,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T03:27:49.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Genentech.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2022-09-13T00:17:53.000Z","updated_at":"2025-01-23T04:16:40.000Z","dependencies_parsed_at":"2024-04-05T05:27:27.693Z","dependency_job_id":"b9a634de-8712-4358-a492-1e9ee54d5ae3","html_url":"https://github.com/Genentech/spex_backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Fspex_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Fspex_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Fspex_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genentech%2Fspex_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genentech","download_url":"https://codeload.github.com/Genentech/spex_backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246264476,"owners_count":20749471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-12-10T19:19:14.819Z","updated_at":"2025-03-30T01:29:47.213Z","avatar_url":"https://github.com/Genentech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spex/backend\n\n\n\n## Getting Started\n\nDownload links:\n\nSSH clone URL: git@ssh.code.roche.com:spex/backend.git\n\nHTTPS clone URL: https://code.roche.com/spex/backend.git\n\n\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n## Production\n\n1. Make symbolic links in of all microservices from `../microservices` to `./microservices`  \n2. copy `./microservices/.env.common` to `./microservices/.env.common.local` and specify correct values for `OMERO_HOST` and `OMERO_WEB`  \n3. copy `.env` to `.env.local` and specify correct values for variables  \n4. Set needed path in environment variable HOST_DATA_STORAGE\n5. `$ export HOST_DATA_STORAGE=\u003cpath\u003e \u0026\u0026 docker-compose up -d --build`\n\n## Deployment\n\n1. Memcached \n\n`$ docker run --name spex_memcached -p 11211:11211 -d memcached memcached -m 64`\n\n2. Redis\n\n```\n$ cd ./microservices/redis  \n$ docker build --pull --rm -t spex_redisjson .\n$ docker run -p 6379:6379 --name spex_redisjson -d spex_redisjson\n$ cd ../..\n```\n \n3. ArangoDB\n\n`$ docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD=pass --name spex_arangodb -d arangodb:3.7.7`\n\nwill set user/password\n```\nuser: root\npass: pass\n```\n\n4. Copy `.env.development` to `.env.development.local`\n\n5. Set the following variables:\n```\nARANGODB_DATABASE_URL=http://localhost:8529\n\nREDIS_HOST=localhost\nREDIS_PORT=6379\nREDIS_SESSION_ALIVE_H=12\n\nDATA_STORAGE=${TEMP}\\\\DATA_STORAGE\n```\n\n6. Run server\n```\n$ pip install pipenv \n$ pipenv install --system --deploy --ignore-pipfile\n$ pipenv shell\n$ pip install itsdangerous==2.0.1\n$ export MODE=development\n$ python ./app.py\n```\n\n7. for start all microservices  \n8. \ncopy `./microservices/.env.common` to `./microservices/.env.common.local` and \nspecify correct values for `OMERO_HOST` and `OMERO_WEB`  \n`$ docker-compose -f ./microservices/docker-compose.yml --project-directory ./microservices up -d --build`\n\n## Resources\n\nAdd links to external resources for this project, such as CI server, bug tracker, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenentech%2Fspex_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenentech%2Fspex_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenentech%2Fspex_backend/lists"}