{"id":21433609,"url":"https://github.com/blackbaba/flask-tailwind-saas-starter-template","last_synced_at":"2025-03-16T22:43:49.110Z","repository":{"id":102885490,"uuid":"439803680","full_name":"blackbaba/Flask-Tailwind-SAAS-Starter-Template","owner":"blackbaba","description":"SAAS Starter Template using Flask and TailwindCSS","archived":false,"fork":false,"pushed_at":"2022-01-28T10:27:22.000Z","size":4456,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T08:45:35.173Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackbaba.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-12-19T07:37:54.000Z","updated_at":"2023-06-25T11:24:23.000Z","dependencies_parsed_at":"2023-06-15T18:00:27.123Z","dependency_job_id":null,"html_url":"https://github.com/blackbaba/Flask-Tailwind-SAAS-Starter-Template","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/blackbaba%2FFlask-Tailwind-SAAS-Starter-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbaba%2FFlask-Tailwind-SAAS-Starter-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbaba%2FFlask-Tailwind-SAAS-Starter-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbaba%2FFlask-Tailwind-SAAS-Starter-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackbaba","download_url":"https://codeload.github.com/blackbaba/Flask-Tailwind-SAAS-Starter-Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945525,"owners_count":20372894,"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-22T23:28:59.213Z","updated_at":"2025-03-16T22:43:49.081Z","avatar_url":"https://github.com/blackbaba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask and TailwindCSS SAAS App Starter Template\n\n## THIS TEMPLATE IS A WORK IN PROGRESS\n\n![Flask Tailwind SAAS Starter Preview](app/static/preview.png)\n\n![Flask Tailwind SAAS Starter Preview](app/static/preview2.png)\n\n## How to use\n\n1. Clone this repo and create a virtual environment (`python3 -m venv venv`) for use with this application.\n2. Activate the virtual environment (`source venv/bin/activate`) and run `pip install -r requirements.txt` to install package dependencies.\n3. Download the [TailwindCSS standalone build tool](https://tailwindcss.com/blog/standalone-cli) and place the executable in the project folder.\n4. In one terminal - run `./tailwindcss -i ./app/static/src/css/tailwind.css -o ./app/static/src/css/index.css --watch`. This will start the Tailwind JIT Watcher and will compile your CSS on the fly.\n5. In the second terminal - setup some ENV variables required to run the Flask application:\n   - Run `export FLASK_APP=run.py` (use `set` instead of `export` for windows)\n   - Run `export FLASK_ENV=development`\n   - Customise the application configuration in `config.py` as per your requirements\n   - Run `flask db upgrade` to intialise database\n   - Run `flask run` to start the Flask development server\n6. You can now add/remove CSS in your jinja templates, it will be auto-compiled by the compiler running in step 4. You will see the Tailwind CSS styles when you refresh your browser (Flask server) window.\n7. Before deploying to production:\n   - Stop the flask server and the Tailwind CLI build tool.\n   - Run `flask assets clean` followed by `flask assets compile` to prepare the CSS and JSS assets for production\n8. Deploy to production. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbaba%2Fflask-tailwind-saas-starter-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackbaba%2Fflask-tailwind-saas-starter-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbaba%2Fflask-tailwind-saas-starter-template/lists"}