{"id":18615367,"url":"https://github.com/crallen/rust-learning-demo-app","last_synced_at":"2025-11-03T04:30:29.867Z","repository":{"id":147847728,"uuid":"430388872","full_name":"crallen/rust-learning-demo-app","owner":"crallen","description":"A small app written in Rust using Actix Web and sqlx","archived":false,"fork":false,"pushed_at":"2021-11-24T14:09:15.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-27T03:11:59.480Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crallen.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}},"created_at":"2021-11-21T14:26:13.000Z","updated_at":"2021-11-24T14:09:17.000Z","dependencies_parsed_at":"2023-05-26T15:15:26.611Z","dependency_job_id":null,"html_url":"https://github.com/crallen/rust-learning-demo-app","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/crallen%2Frust-learning-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crallen%2Frust-learning-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crallen%2Frust-learning-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crallen%2Frust-learning-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crallen","download_url":"https://codeload.github.com/crallen/rust-learning-demo-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406497,"owners_count":19633025,"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-07T03:29:05.829Z","updated_at":"2025-11-03T04:30:29.809Z","avatar_url":"https://github.com/crallen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Learning Demo App\n\nA small app written in Rust using Actix Web and sqlx. This is my adventure in learning Rust, so it is not intended to \nbe production-ready code.\n\n## Development\n\n### Requirements\n\n- Rust\n- sqlx-cli crate\n- PostgreSQL or Docker\n\n### Setup\n\nIf you do not have PostgreSQL already running on your machine, a `docker-compose.yml` file is included here that will\nget PostgreSQL up and running for you. To start it, simply run:\n\n```shell\ndocker-compose up -d\n```\n\nAnd to stop it, run:\n\n```shell\ndocker-compose down\n```\n\nNext, set up a `.env` file in the root of the cloned repository. This is where you can define your database\nconfiguration and log level:\n\n```dotenv\nRUST_LOG=debug\n# DB_HOST=localhost (default)\n# DB_PORT=5432 (default)\n# DB_USER=identity (default)\nDB_PASSWORD=pgdev\n# DB_NAME=identity (default)\n```\n\nNow you can run the `migrate.sh` script to initialize the database:\n\n```shell\n./migrate.sh init\n```\n\n### Running\n\nThis can vary according to what IDE you are using, so we will stick to the `cargo` commands here. To build the\nproject, you can run the following from the project root:\n\n```shell\ncargo build\n```\n\nAnd then to start the server:\n\n```shell\ncargo run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrallen%2Frust-learning-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrallen%2Frust-learning-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrallen%2Frust-learning-demo-app/lists"}