WYSIWYG blog creator based on summernote. We can edit existing blogs too or we can create new blogs. Also supports meta tag manipulation like keywords etc.
-
You can do a live test here https://dasxplore-blog-maker.onrender.com/
-
Select a blog from drop down & edit as you want. Then save it.
-
See the two blogs (updated) at https://dasxplore-blog-maker.onrender.com/blog1 and https://dasxplore-blog-maker.onrender.com/blog2
You can buy me a coffee via this link or tap on below image. Thank you 🙏.
You can click on the below Image or this Youtube Link to see the demo. Please let me know in the comments, how do you feel about this App.
It is easy and quick to setup. All you need is python and git installed on your system.
You can downlaod python from the official website
- Clone the repo & run your app
git clone https://github.com/dasxplore/blog-maker.git
cd blog-maker/app
python3 -m venv .env
# On non-Windows
source .env/bin/activate
# On Windows
bash # if you have git instaled, the git bash will open in your terminal
source .env/Scripts/activate
# install the dependencies
pip install -r requirements.txt
# Then run the app
python app.py # it will use the default paths as shown in below table.- Open your browser and type below adress. Then start creating the blogs.
http://localhost:5000/
We are using this json format to create blogs with proper details and directory structure. In order to add new blogs, first add them using the given template and the run the app. Then app can directly save using proper structure and details.
All default paths are related from app directory. You can try python app.py --help to get the details.
usage: app.py [--host HOST] [--port PORT] [--json JSON] [--html_dir HTML_DIR] [--domain DOMAIN] [--debug]| Argument | Description | Type | Default | Required |
|---|---|---|---|---|
--host |
You may use 0.0.0.0 if you want the app to be accessible from your network |
str |
127.0.0.1 |
no |
--port |
Port number to run your app | int |
5000 |
no |
--json |
Path to your blog JSON (metadata) file. Sample file | str |
../website/assets/data/blogs/blogs.json |
no |
--html_dir |
The directory path where your blogs will be created and it needs to have the template directory (see below for more details) | str |
../website/blogs |
no |
--domain |
The domain url, it is used in meta tags | str |
https://dasxplore.com |
no |
--debug |
Pass this argument to enable flask debug | none |
no |
- You need to have the following directory structure for the
--html_diri.e. theblogdirectory where thetemplatefolder withblog.htmlshould exist. Here is our template . You can follow the same structure and have your own template. The blogs will also be created under the selected directory.
.
├── assets
│ ├── css
│ │ └── main.css
│ └── data
│ └── blogs
│ └── blogs.json
├── blogs
│ └── templates
│ └── blog.html
└── index.html- You can have your own template for the blogs including your navbar, footer or any other sections. All you need is a
divtag with IDblogContenthaving{{ blog_html }}written inside and our app will add the created/updated blog under it. Here is our html file. Your template can have something like:
<section {{ pagefind }} class="your-class">
<div id="blogContent" class="container">
{{ blog_html }}
</div>
</section>docker build -t sdas92/blog-maker:v0.0.3 -f app/Dockerfile .
docker run -d -p 5000:5000 --name blog-maker sdas92/blog-maker:v0.0.3We have used below stacks:
This is licensed under MIT license, you may build something more powerful and having more developers will surely help this project a lot. Hoping to hear from you.
