{"id":21672535,"url":"https://github.com/redis-developer/nredi2read-preview","last_synced_at":"2025-04-12T03:53:10.923Z","repository":{"id":48352103,"uuid":"356119229","full_name":"redis-developer/nredi2read-preview","owner":"redis-developer","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-30T14:24:17.000Z","size":6634,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-12T03:53:04.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redis-developer.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}},"created_at":"2021-04-09T03:12:10.000Z","updated_at":"2022-04-02T20:17:39.000Z","dependencies_parsed_at":"2022-09-07T18:10:16.557Z","dependency_job_id":null,"html_url":"https://github.com/redis-developer/nredi2read-preview","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/redis-developer%2Fnredi2read-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fnredi2read-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fnredi2read-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-developer%2Fnredi2read-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redis-developer","download_url":"https://codeload.github.com/redis-developer/nredi2read-preview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514209,"owners_count":21116899,"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-11-25T13:29:58.126Z","updated_at":"2025-04-12T03:53:10.904Z","avatar_url":"https://github.com/redis-developer.png","language":"C#","readme":"# NRedi2Read-Preview\n## A Redis + .NET Coding Adventure\n\n![Pattern View](overview.png)\n\nA collection of .NET REST services for a mythical online bookstore powered by Redis. It uses:\n\n* [StackExchange.Redis](https://stackexchange.github.io/StackExchange.Redis/)\n* [RediSearch](https://oss.redislabs.com/redisearch/) via [NRediSearch](https://stackexchange.github.io/StackExchange.Redis/)\n* [RedisJSON](https://oss.redislabs.com/redisjson/) via [NReJSON](https://github.com/tombatron/NReJSON)\n\n**Prerequisites:**\n\n* [.NET 5](https://dotnet.microsoft.com/download/dotnet/5.0)\n* [Docker](https://docs.docker.com/get-docker/)\n* [Docker Compose](https://docs.docker.com/compose/install/)\n\n## | [Getting Started](#getting-started) | [See Also](#see-also) | [Help](#help) | [License](#license) | [Credit](#credit) |\n\n## Getting Started\n\n### Clone the Repository w/ Submodules\n\nTo install this example application, run the following commands:\n```bash\ngit clone git@github.com:redis-developer/NRedi2Read-preview.git\ncd NRedi2Read-preview\n```\n\nYou can also import the code straight into your IDE:\n* [Visual Studio Code](https://code.visualstudio.com/docs/languages/csharp)\n* [JetBrains Rider](https://www.jetbrains.com/help/rider/Creating_and_Opening_Projects_and_Solutions.html)\n\n### Start Redis and the .NET Application\n\nSet the environment secrets\n```bash\ndotnet user-secrets init\ndotnet user-secrets set CacheConnection \"localhost,abortConnect=false,ssl=false,allowAdmin=false,password=\"\n```\n\n#### Optional Configuration setup\nThe User API uses the [BCRYPT](https://en.wikipedia.org/wiki/Bcrypt) algorithm to hash its passwords. This app will also bulk-load 1000 users when it starts up (if they are not already in the database). Because of these two pieces in conjunction starting up can take a while (a couple minutes) the first time the server is started up, unless you artificially decrease the amount of work the BCRYPT algorithm has to do. If you are only using the stuff in here for demonstration purposes you can decrease the amount of work the BCRYPT algorithm does by setting the `BCryptWorkFactor` configuration variable you can do that locally with:\n\n```bash\ndotnet user-secrets set \"BCryptWorkFactor\" \"4\"\n```\n\nStart up Docker:\n ```bash\n docker run -p 6379:6379 -it --rm redislabs/redismod:edge\n ```\n\nStart the app (in separate shell)\n```bash\ndotnet run\n```\n\nYou can then access the UI at [http://localhost:5000/](http://localhost:5000/?#)\n\nYou can either make your own user profile, or login using one of the profiles from `/redi2read-data/users/users.json`\n\nAccess the Swashbuckle/Swagger UI:\n[http://localhost:5001/swagger/index.html](https://localhost:5001/swagger/index.html)\n\n## See Also\n\nQuick Tutorial on Redis' Powerful Modules:\n\n* [RedisJSON Tutorial](https://developer.redislabs.com/howtos/redisjson)\n* [RediSearch Tutorial](https://developer.redislabs.com/howtos/redisearch)\n\n## Help\n\nPlease post any questions and comments on the [Redis Discord Server](https://discord.gg/redis),\nand remember to visit our [Redis Developer Page](https://developer.redislabs.com) for awesome tutorials,\nproject and tips.\n\n## License\n\n[MIT Licence](http://www.opensource.org/licenses/mit-license.html)\n\n## Credit\n\n- [DaShaun Carter](https://github.com/dashaun) @ [Redis Labs](https://redislabs.com)\n- [Guy Royse](https://github.com/guyroyse) @ [Redis Labs](https://redislabs.com)\n- [Steve Lorello](https://github.com/slorello89) @ [Redis Labs](https://redislabs.com)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fnredi2read-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredis-developer%2Fnredi2read-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-developer%2Fnredi2read-preview/lists"}