{"id":39155729,"url":"https://github.com/junekimdev/stockinfo-backend","last_synced_at":"2026-01-17T21:57:48.473Z","repository":{"id":237893851,"uuid":"795438246","full_name":"junekimdev/stockinfo-backend","owner":"junekimdev","description":"Backend for Stockinfo website","archived":false,"fork":false,"pushed_at":"2025-12-11T10:19:02.000Z","size":869,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-12T02:37:29.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/junekimdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-03T09:29:29.000Z","updated_at":"2025-12-11T10:17:39.000Z","dependencies_parsed_at":"2025-02-14T12:31:52.717Z","dependency_job_id":null,"html_url":"https://github.com/junekimdev/stockinfo-backend","commit_stats":null,"previous_names":["junekimdev/stockinfo-backend"],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/junekimdev/stockinfo-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junekimdev%2Fstockinfo-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junekimdev%2Fstockinfo-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junekimdev%2Fstockinfo-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junekimdev%2Fstockinfo-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junekimdev","download_url":"https://codeload.github.com/junekimdev/stockinfo-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junekimdev%2Fstockinfo-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28519182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-17T21:57:44.801Z","updated_at":"2026-01-17T21:57:48.459Z","avatar_url":"https://github.com/junekimdev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stockinfo Backend\n\n![release-version](https://img.shields.io/github/v/release/junekimdev/stockinfo-backend?display_name=tag)\n[![Build Container Image](https://github.com/junekimdev/stockinfo-backend/actions/workflows/docker-publish.yaml/badge.svg)](https://github.com/junekimdev/stockinfo-backend/actions/workflows/docker-publish.yaml)\n\n## Getting Started\n\n### Prerequisite\n\n- Install latest `Rust`\n\n  \u003chttps://www.rust-lang.org/tools/install\u003e\n\n  ```shell\n  # for linux\n  curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh\n  rustup update\n  rustc --version\n  ```\n\n- Install `Docker`\n- Install `Make`\n- Install `OpenSSL`\n  - for Windows:\n    - Use `vcpkg` to install `OpenSSL`\n    - Set `OPENSSL_DIR` environment variable to its installed path\n      - or set `OPENSSL_LIB_DIR` and `OPENSSL_INCLUDE_DIR` environment variables to its installed path\n    - Set the `VCPKGRS_DYNAMIC` environment variable to `1` to instruct the `openssl-sys` crate to use dynamic linking\n  - for Debian and Ubuntu:\n    - `sudo apt-get install pkg-config libssl-dev`\n  - for Alpine Linux:\n    - `apk add pkgconf openssl-dev`\n  - for Arch Linux:\n    - `sudo pacman -S pkgconf openssl`\n  - for macOS\n    - Use Homebrew: `brew install openssl@3`\n      - or use MacPorts: `sudo port install openssl`\n      - or use pkgsrc: `sudo pkgin install openssl`\n\n### Prep env and config\n\n- Add a file `.env` that includes environmental variables\n\n  Example:\n\n  ```shell\n  POSTGRES_USER=stockinfo\n  POSTGRES_DB=stockinfo\n  POSTGRES_PASSWORD=super-secret-password\n  POSTGRES_INITDB_ARGS=\"--lc-collate=C --lc-ctype=en_US.UTF-8\"\n  ```\n\n- Add a file `production.toml` under `/config` by modifying `default.toml` with proper values\n\n### Build\n\n- Build docker image by running `make` in your terminal\n  - or run `cargo build`\n\n### Initial DB Build\n\n```shell\ncurl -X POST -d {} \u003cURL_API\u003e/v1/companies\ncurl -X POST -d {} \u003cURL_API\u003e/v1/dart/code\ncurl -X POST -d {} \u003cURL_API\u003e/v1/tickers\n```\n\n### Edit crontab\n\n- Open crontab editor: `crontab -e`\n- Schedule API executions for cleaning process\n\n  ```shell\n  0 0 * * * curl -X DELETE \u003cURL_API\u003e/v1/prices \u0026\u003e /dev/null\n  0 5 * * * curl -X DELETE \u003cURL_API\u003e/v1/prices_us \u0026\u003e /dev/null\n  0 18 * * 6 curl -X POST -d {} \u003cURL_API\u003e/v1/companies \u0026\u003e /dev/null\n  30 18 * * 6 curl -X POST -d {} \u003cURL_API\u003e/v1/dart/code \u0026\u003e /dev/null\n  0 19 * * 6 curl -X POST -d {} \u003cURL_API\u003e/v1/tickers \u0026\u003e /dev/null\n  ```\n\n## Authors\n\n- **June Kim** - _Initial work_ - [Github](https://github.com/junekimdev)\n\n## License\n\nNo license is given by the author. All rights are reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunekimdev%2Fstockinfo-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunekimdev%2Fstockinfo-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunekimdev%2Fstockinfo-backend/lists"}