{"id":18649740,"url":"https://github.com/ashwanthkumar/python-remix-starter","last_synced_at":"2025-11-05T10:30:29.923Z","repository":{"id":258144361,"uuid":"861019734","full_name":"ashwanthkumar/python-remix-starter","owner":"ashwanthkumar","description":"Basic template for setting up a basic flask backend, remix frontend and personal dev preference to run them for local development","archived":false,"fork":false,"pushed_at":"2025-01-04T19:09:33.000Z","size":239,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T20:19:39.037Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashwanthkumar.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":"2024-09-21T19:29:12.000Z","updated_at":"2025-01-04T19:09:37.000Z","dependencies_parsed_at":"2024-12-27T12:43:43.315Z","dependency_job_id":"936a0cbf-ec08-4f49-aa7b-a5b854eb3c9c","html_url":"https://github.com/ashwanthkumar/python-remix-starter","commit_stats":null,"previous_names":["ashwanthkumar/python-remix-starter"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fpython-remix-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fpython-remix-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fpython-remix-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwanthkumar%2Fpython-remix-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwanthkumar","download_url":"https://codeload.github.com/ashwanthkumar/python-remix-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239456405,"owners_count":19641843,"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-07T06:40:18.749Z","updated_at":"2025-11-05T10:30:29.872Z","avatar_url":"https://github.com/ashwanthkumar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-remix-starter\n\nA template repo that is created by Ashwanth for personal use, but feel free to use / modify it for your purpose as well. Lot of things in here are very opininated and suited for personal use.\n\n## TODOs for new projects\n- Update the `DATABASE_NAME` in `run_dev.js`\n- Update the `JWT_SECRET_KEY` in `config.py`\n- Update the `SQLALCHEMY_DATABASE_URI` in `config.py`\n\nLicense: https://opensource.org/license/mit\n\n---\n\n## Simplified DEV Experience\n\nBelow you'll find the readme instructions specific for running the Backend API and Frontend APP. We have a single unified script that enables you to start both together once you're inside a virtualenv loaded shell. So this is how the workflow looks:\n\n```\n# this is needed only the 1st time\n$ python -m venv venv\n$ source venv/bin/activate\n# install nodev20 if not already\n$ nvm install v20\n$ nvm alias default v20\n$ npm install\n$ node run_dev.js\n\n# Run manually if you added items to requirements.txt\n$ pip install -r requirements.txt\n\n# For changes in models\n$ flask db migrate -m \"Initial migration\"\n$ flask db upgrade\n```\n\n## API README\n\n## Setup\n\n1. Install dependencies:\n```\npip install -r requirements.txt\n```\n\n2. Run the database:\n```\ndocker run --rm -v $PWD/db_data:/var/lib/postgresql/data -e PGDATA=/var/lib/postgresql/data/pg_data/ --name awesomeapp -p 5432:5432 -e POSTGRES_PASSWORD=sa -e POSTGRES_USER=sa -e POSTGRES_DB=awesomeapp postgres:16-alpine\n```\n\n3. Set up the database:\n```\nflask db init\nflask db migrate -m \"Initial migration\"\nflask db upgrade\n```\n\n4. Run the application:\n```\nflask run -p 5001\n```\n\nDuring development, I prefer to use nodeman so it autorestarts the server so you can test the changes very quickly. Assuming you have the latest node in PATH, you can start it as follows:\n\n```\nnpx nodemon --exec \"flask run -p 5001\"\n```\n\n## Database Migrations\n\nTo create a new migration after changing the database models:\n\n```\nflask db migrate -m \"Description of changes\"\n```\n\nTo apply the migrations to the database:\n\n```\nflask db upgrade\n```\n\nTo revert the last migration:\n\n```\nflask db downgrade\n```\n\n\n## UI README\n\n# Welcome to Remix!\n\n- 📖 [Remix docs](https://remix.run/docs)\n\n## Development\n\nRun the dev server:\n\n```shellscript\nnpm run dev\n```\n\n## Deployment\n\nFirst, build your app for production:\n\n```sh\nnpm run build\n```\n\nThen run the app in production mode:\n\n```sh\nnpm start\n```\n\nNow you'll need to pick a host to deploy it to.\n\n### DIY\n\nIf you're familiar with deploying Node applications, the built-in Remix app server is production-ready.\n\nMake sure to deploy the output of `npm run build`\n\n- `build/server`\n- `build/client`\n\n## Styling\n\nThis template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever css framework you prefer. See the [Vite docs on css](https://vitejs.dev/guide/features.html#css) for more information.\n\n---\n\n\n### Common Issues\n\nIf you happen to see \"Error: Could not find a working container runtime strategy\", most likely your Docker Desktop is not running. Please check.\n\nIf you're not able to run `npm run dev`, most likely you're not using node 20+, consider doing `nvm install v20` and `nvm alias default v20`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Fpython-remix-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwanthkumar%2Fpython-remix-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwanthkumar%2Fpython-remix-starter/lists"}