How to run:
Install dependency
$ npm install
Run app
$ npm run dev
Server run in http://localhost:8080
How to run:
Installing virtual environment
$ virtualenv -p python3 venv
Load environment
$ source venv/bin/activate
Installing dependency
$ pip install -r requirements.txt
For first time instalation, create database if not exist
$ python
>>> from article import db
>>> db.create_all()
>>> exit()
Run app
$ python article.py
Server run in http://localhost:5000
This unit test only for flask-backend. Run it from 'flask-backend' folder.
$ python test/article_test.py
-
For the first time, create article. All data must be filled.
-
Click the 'Create' button, if success, flash message 'Article created successfully' will appear. Click return to articles to going back to home
-
Lets create one more. And now let we click edit on first data
-
Lets delete second article, click delete. You will see new page, click 'Delete Article' for confirmation.
-
Second data has been deleted. Lets do one more with the only one data
MIT
Free Software, Hell Yeah!