https://github.com/areal060781/blog-app-unit-testing
Blog application with unit testing integration
https://github.com/areal060781/blog-app-unit-testing
api-rest blueprint flask flask-api flask-mail flask-migrate http-auth jwt-auth slqalchemy sqlite unittest virtualenv wtforms-flask
Last synced: 7 months ago
JSON representation
Blog application with unit testing integration
- Host: GitHub
- URL: https://github.com/areal060781/blog-app-unit-testing
- Owner: areal060781
- Created: 2020-06-07T23:57:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T11:12:11.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T23:36:35.543Z (9 months ago)
- Topics: api-rest, blueprint, flask, flask-api, flask-mail, flask-migrate, http-auth, jwt-auth, slqalchemy, sqlite, unittest, virtualenv, wtforms-flask
- Language: Python
- Homepage:
- Size: 181 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Blogger clone
A blogging and social networking application made with Flask, include an Application Programming Interface and implements different unit testing strategies### Includes
* Presents an application structure that is appropriate for mediums and large applications.
* Database migrations and data seeder
* Email support
* User authentication system
* User roles and permissions
* Blogging interface
* Profile pages
* Followers
* User comments for blog posts
* RESTful webservices
* Error handling
* User authentication (HTTPAuth, JWT)
* Serializing resources
* Pagination
* Tests
* Code coverage reports
* Web application testing
* Web services testing
* End to end testing with **Selenium**### Requirements
* Python 3.7
* Virtualenv### Notes
Configure your system so FLASK_APP and FLASK_DEBUG are set by default.### Installation
Inside the project directory, create the environment, activate it and install the requirements
```sh
python3 -m venv venv
. twittervotes/bin/activate
pip install -r requirements/common.txt
pip install -r requirements/dev.txt
```Run the migrations
```
flask db upgrade
```Create the following environment variables:
SECRET_KEY, MAL_USERNAME, MAIL_PASSWORDRun the application as usual
```sh
(venv) $ flask run
```The unit tests can be executed as follows
```sh
(venv) $ flask test --coverage
```