diff --git a/README.md b/README.md index 9eabb9d..9d4af09 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ -# coriplus +# Cori+ + +A simple social network, inspired by the now dead Google-Plus. To run the app, run the file "run_example.py" -Based on Tweepee example of [peewee](https://github.com/coleifer/peewee/). \ No newline at end of file +Based on Tweepee example of [peewee](https://github.com/coleifer/peewee/). + +## Features + +* Create text statuses, optionally with image +* Follow users +* Timeline feed +* In-site notifications +* SQLite-based app diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..1efada2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +peewee diff --git a/run_example.py b/run_example.py index 18a7029..f17e1f1 100644 --- a/run_example.py +++ b/run_example.py @@ -3,6 +3,14 @@ import sys sys.path.insert(0, '../..') +import argparse +parser = argparse.ArgumentParser() +parser.add_argument('-p', '--port', type=int, default=5000, + help='An alternative port where to run the server.') + from app import app, create_tables -create_tables() -app.run() + +if __name__ == '__main__': + args = argparse.parse_args() + create_tables() + app.run(port=args.port)