{"id":13705705,"url":"https://github.com/stopspazzing/Sanic-MDL-Blog","last_synced_at":"2025-05-05T16:33:50.556Z","repository":{"id":86502692,"uuid":"88893290","full_name":"stopspazzing/Sanic-MDL-Blog","owner":"stopspazzing","description":"An async Python server running Material Design Lite Blog template","archived":true,"fork":false,"pushed_at":"2020-05-02T19:45:51.000Z","size":1389,"stargazers_count":50,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T22:15:50.213Z","etag":null,"topics":["async","async-python","asynchronous","blog","material-design-lite","mdl","python","sanic","server"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/stopspazzing.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}},"created_at":"2017-04-20T17:36:27.000Z","updated_at":"2023-08-25T23:15:23.000Z","dependencies_parsed_at":"2023-03-13T19:59:25.157Z","dependency_job_id":null,"html_url":"https://github.com/stopspazzing/Sanic-MDL-Blog","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/stopspazzing%2FSanic-MDL-Blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopspazzing%2FSanic-MDL-Blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopspazzing%2FSanic-MDL-Blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stopspazzing%2FSanic-MDL-Blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stopspazzing","download_url":"https://codeload.github.com/stopspazzing/Sanic-MDL-Blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224455911,"owners_count":17314204,"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":["async","async-python","asynchronous","blog","material-design-lite","mdl","python","sanic","server"],"created_at":"2024-08-02T22:00:46.461Z","updated_at":"2024-11-13T13:30:49.732Z","avatar_url":"https://github.com/stopspazzing.png","language":"HTML","readme":"[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a6bd96eca22d4711a708db80a9b42e63) ](https://www.codacy.com/app/stopspazzing/Sanic-Server-with-MDL-Blog-Template?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=stopspazzing/Sanic-Server-with-MDL-Blog-Template\u0026amp;utm_campaign=Badge_Grade)\n# Material Design Lite Blog Using Sanic\nA [Sanic](https://github.com/channelcat/sanic) ([asynchronous](http://stackoverflow.com/questions/748175/asynchronous-vs-synchronous-execution-what-does-it-really-mean)) server running with the [blog template](https://getmdl.io/templates/blog/) from [Material Design Lite](https://getmdl.io/) . Eventually will become a 'live' blog template with an [admin dashboard](https://getmdl.io/templates/dashboard/index.html).\n\n## Prerequisites\nYou need several packages first for all pip packages to completely install.\n\nNOTICE:\n\nWorking on Windows with Visual C++ v14 installed. Please use instructions here: https://www.scivision.dev/python-windows-visual-c-14-required/\n\n\nSo here is a list of packages required:\n```\npython \u0026 python-dev \u003e=3.6\n```\n\n\n## Installation\n\n`pip install -r requirements.txt`\n\n\n## Configuration\n\n100% following Sanic's import from config:\nhttp://sanic.readthedocs.io/en/latest/sanic/config.html#from-a-file\nFor Database connection urls, use https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls\n\nDatabase type names:\n```\nsqlite\nmysql\npostgresql\n```\n\nExample config:\n```\nDB_URI = 'sqlite:///app.db'\nDB_TYPE = 'sqlite'\nDEMO_CONTENT = False\n```\n\n\nEither you can create a config file `config.py` file in same directory as `main.py` or you may load the program with the location of the file to variable config_file like so:\n```\nMY_SETTINGS=/path/to/config_file python3 main.py\n```\n\n## Starting Server\n\nTo start the server: `python3 run.py`\n\nTo access server: http://127.0.0.1:8000\n\n## TODO\n\n1. Finish Database support\n2. Admin Page completion\n3. Possibly most common plugins for Wordpress sites (Contact Forms, Yoast) as built in features you could enable.\n","funding_links":[],"categories":["Resources"],"sub_categories":["Built with Sanic"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstopspazzing%2FSanic-MDL-Blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstopspazzing%2FSanic-MDL-Blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstopspazzing%2FSanic-MDL-Blog/lists"}