A simple blog website for blog posting. This website has authentication, database, post-create, post-update,
post-delete features. Sqlite3
is used as the database for this website.
- Clone Repository
- Create Virtual Environment and Activate it
- Set Flask app and environment
- Initialize Database
- Run app
# Clone the repository
$ git clone https://github.com/Rezuanul-Islam-Fahim/simple-blog-site
# Navigate to the project folder
$ cd simple-blog-site
For macOS
and linux
:
$ python3 -m venv venv
$ . venv/bin/activate
Or for windows
PC:
$ py -3 -m venv venv
$ venv\Scripts\activate.bat
For macOS
and linux
:
$ export FLASK_APP=app
$ export FLASK_ENV=development
Or for windows
PC:
$ set FLASK_APP=app
$ set FLASK_ENV=development
To initialize database run this command:
$ flask init-db
After initializing database, run this command to run app in a local
server:
$ flask run
To view this app, open http://127.0.0.1:5000 or http://localhost:5000 in your browser.
MIT License
Copyright (c) 2020 Rezuanul Islam Fahim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.