diff --git a/.idea/commandlineblog.iml b/.idea/commandlineblog.iml
deleted file mode 100644
index 6711606..0000000
--- a/.idea/commandlineblog.iml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
deleted file mode 100644
index 15a15b2..0000000
--- a/.idea/encodings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 7a5c067..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 75dadb7..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index 2e1a734..0000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,254 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1544429487803
-
-
- 1544429487803
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/__init__.py b/app/__init__.py
deleted file mode 100644
index c7ca2cd..0000000
--- a/app/__init__.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from flask_api import FlaskAPI
-from .api.v1 import version_1 as v1
-from flask_jwt_extended import (JWTManager)
-
-
-def create_app(config_name):
- app = FlaskAPI(__name__, instance_relative_config=True)
- app.config.from_pyfile('config.py')
- app.register_blueprint(v1)
- app.config['JWT_SECRET_KEY'] = 'HUNCHO'
- jwt = JWTManager(app)
-
- return app
\ No newline at end of file
diff --git a/app/api/__init__.py b/app/api/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/app/api/v1/__init__.py b/app/api/v1/__init__.py
deleted file mode 100644
index 97b46a3..0000000
--- a/app/api/v1/__init__.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from flask import Blueprint,make_response,json,abort,Flask,jsonify
-from flask_restful import Api
-from .redflags.models import All_Incidents,One_Incident
-
-version_1=Blueprint('api_v1',__name__,url_prefix='/api/v1')
-
-
-api=Api(version_1)
-api.add_resource(All_Incidents,'/flags/')
-api.add_resource(One_Incident,'/flags/')
diff --git a/app/api/v1/comments/__init__.py b/app/api/v1/comments/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/app/api/v1/comments/models.py b/app/api/v1/comments/models.py
deleted file mode 100644
index e69de29..0000000
diff --git a/app/api/v1/comments/views.py b/app/api/v1/comments/views.py
deleted file mode 100644
index e69de29..0000000
diff --git a/app/api/v1/users/__init__.py b/app/api/v1/users/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/app/api/v1/users/models.py b/app/api/v1/users/models.py
deleted file mode 100644
index e69de29..0000000
diff --git a/app/api/v1/users/views.py b/app/api/v1/users/views.py
deleted file mode 100644
index e69de29..0000000
diff --git a/commandblog.py b/commandblog.py
new file mode 100644
index 0000000..96fe7c7
--- /dev/null
+++ b/commandblog.py
@@ -0,0 +1,59 @@
+import datetime
+
+comments = []
+users = [
+ {
+ "name": "kenn",
+ "password": "1234",
+ "role": "admin",
+ "lastLoginAt": ""
+
+ },
+ {
+ "name": "issa",
+ "password": "1234",
+ "role": "moderator",
+ "lastLoginAt": ""
+ },
+ {
+ "name": "eric",
+ "password": "1234",
+ "role": "normal",
+ "lastLoginAt": ""
+ },
+ {
+ "name": "steve",
+ "password": "1234",
+ "role": "normal"
+ }
+]
+
+def login():
+ username = input("please input username: ")
+
+ for user in users:
+ if user['name'] == username:
+ # return user['password']
+ password = input("please input password: ")
+ if user['password'] != password:
+ print('Wrong password')
+ user["lastLoginAt"] = datetime.datetime.now()
+
+ if user['role'] == "normal":
+ userinput = input("1. create comment \n 2.Edit comment \n 3. logout ")
+
+ if userinput == str("1"):
+ comment = input("Enter your comment:")
+
+ data = {'comment_id': len(comments) +1,
+ 'comment': comment,
+ 'timestamp': datetime.datetime.now() ,
+ 'created_by': username
+ }
+ comments.append(data)
+ return comments
+
+
+
+
+print(login())
\ No newline at end of file