{"id":19238827,"url":"https://github.com/vic778/stock_app","last_synced_at":"2026-05-07T02:31:18.012Z","repository":{"id":176352658,"uuid":"656272621","full_name":"vic778/stock_app","owner":"vic778","description":"this app is a simple investment portfolio management system that allows users to track their investments and view performance metrics. first of all the user should create an account, loggin in trougth the token and create a portfolio. the app has services to calculate the profit and lost, it has filter such as year and it can download the csv file","archived":false,"fork":false,"pushed_at":"2023-06-27T12:54:23.000Z","size":2167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T14:15:02.056Z","etag":null,"topics":["cors","devise","jwt-token","postgresql","rspec","rubocop","ruby-on-rails","third-party"],"latest_commit_sha":null,"homepage":"https://github.com/vic778/stock_app_front","language":"Ruby","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/vic778.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}},"created_at":"2023-06-20T15:50:29.000Z","updated_at":"2023-06-25T14:23:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f75b2b7-4f85-4af2-9c56-cb05bb332bba","html_url":"https://github.com/vic778/stock_app","commit_stats":null,"previous_names":["vic778/stock_app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vic778/stock_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic778%2Fstock_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic778%2Fstock_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic778%2Fstock_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic778%2Fstock_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic778","download_url":"https://codeload.github.com/vic778/stock_app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic778%2Fstock_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32720109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cors","devise","jwt-token","postgresql","rspec","rubocop","ruby-on-rails","third-party"],"created_at":"2024-11-09T16:34:50.783Z","updated_at":"2026-05-07T02:31:17.994Z","avatar_url":"https://github.com/vic778.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STOCK APP\n\n\u003e This app is a simple investment portfolio management system that allows users to track their investments and view performance metrics. first of all the user should create an account, loggin in trougth the token and create a portfolio. the app has services to calculate the profit and lost, it has filter such as year and it can download the csv file. This API is made these models:\n\n  - User Model\n  - Portfolio\n  - Investment\n  \n### ERD PG\n![img](app/assets/images/erb.png)\n\n### Message rendered from the backend \n![img](app/assets/images/reg_res.png)\n\n### User confirmation Mailer\n![img](app/assets/images/confirm.png)\n\n### Deployment\n [Video](https://www.loom.com/share/25504df4e78a44d8b1a2d5caa4b71c98?sid=89cf883f-b4f1-4a6b-aa26-17878595dd0c)\n## Built With\n\n- Rails\n- Ruby \n- Postgresql\n- Devise\n- JWT\n- Alpha Vantage\n- ActiveRecord Serializer\n- Sidekiq\n- Redis\n- Rspec\n\n### Front-End\n[Repo Link](https://github.com/vic778/stock_app_front)\n\n![frontend](app/assets/images/fron.png)\n\n## Endepoints\n  allow user to authenticate and return a token\n\n`POST /api/users/login`\n\nallows user to create an account\n\n`POST /users/`\n\ncreate a portfolio\n\n`POST /api/portfolios/`\n\nget a portfolio with investements\n\n`GET /api/portfolios/:id`\n\ncrreate an investement\n\n`POST /api/portfolios/:id/investments`\n\n## Notice\n all the calculations includes comments for formula are in the daily_report_service.\n  ![service](app/assets/images/serv.png)\n\n\n## Getting Started\n\nHere are the steps to follow in order to get this project on your local computer.\n\n### Prerequisites\n\n`rails v7.0.2 +`\n\n`ruby v3.1.2 +`\n\n### Setup\n\nclone this repo by typing `git clone https://github.com/vic778/stock_app`\n\n### Install\n\ninstall the dependencies by typing `bundle install`\n\n### Usage\n\nstart the local server by running `rails s`\n\n### Testing\n\nrun the tests by typing `rspec`\n\n![img](app/assets/images/rsp.png)\n\n\n## Documentation\n  User Registration and Login:\n\nUsers can create an account by providing their details and registering.\n  - Once registered, users can log in to the application using their credentials.\n  - The login process generates a token that will be used for subsequent API calls.\n\nPortfolio Creation:\n\n - After logging in, users can create a new portfolio.\n - They can provide a name and an optional description for the portfolio.\n - Upon creation, the portfolio is associated with the logged-in user.\n\nInvestment Creation:\n\n - Users can add investments to their portfolios.\n - They need to provide details such as the security symbol or ticker, purchase price, number of shares, and purchase date.\n - When creating an investment, the user selects the portfolio to which it belongs.\n\nProfit and Loss Calculation:\n\n - The application provides services to calculate the profit and loss of investments.\n - It takes into account the purchase price, current market data, and the number of shares.\n - The calculated profit and loss are displayed to the user.\n\nFiltering and Historical Data:\n\n - Users can filter their investments based on various criteria such as a specific year.\n - The application fetches and displays the historical performance data for the selected investments.\n - CSV File Download:\n\n\n## Author\n\n👤 **Victor Barh**\n\n- GitHub: [@Vvic778](https://github.com/vic778)\n- Twitter: [@victoirBarh](https://twitter.com/)\n- LinkedIn: [LinkedIn](https://linkedin.com/in/victoir-barh)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check the [issues page](issues/).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n N/A\n\n## 📝 License\n\nThis project is [MIT](lic.url) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic778%2Fstock_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic778%2Fstock_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic778%2Fstock_app/lists"}