Base application for flask website using socketio and mongodb