diff --git a/app.py b/app.py index b8e340c..8ad838a 100644 --- a/app.py +++ b/app.py @@ -207,6 +207,9 @@ def emojify(message): app = Flask(__name__) CORS(app) +if __name__ == "__main__": + app.run(port=5500) + @app.route('/getemoji', methods=['GET']) # @cross_origin() def get_random_emoji(): diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..56d6f2f --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +with import {}; + +mkShell { + buildInputs = [ + python3 + python3Packages.flask + python3Packages.flask-cors + python3Packages.gunicorn + ]; + + shellHook = '' + export LANG=C.UTF-8 + export LC_ALL=C.UTF-8 + ''; +} \ No newline at end of file