GitHub上类似Trello的程序的执行命令

背景

我正在尝试在GitHub:https://github.com/delitamakanda/treelo上执行类似Trello的程序。

GitHub上的README.md文件没有写得很详细, 因此,如果您能向我解释在浏览器上运行它,我将不胜感激。

问题

使用以下命令和环境设置失败。

http://127.0.0.1:5000/上的错误消息

Not Found
The requested URL was not found on the server. 
If you entered the URL manually please check your spelling and try again.

执行命令

$ flaSK_APP=manage.py flaSK_DEBUG=true flask run

终端响应

127.0.0.1 - - [04/Nov/2019 11:43:03] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [04/Nov/2019 11:43:03] "GET /favicon.ico HTTP/1.1" 404 -

我做什么

在treelo-master文件夹中,我在Terminal上执行了以下命令,并成功创建了带有requirements.txt的虚拟环境。

$ python3 -m venv env
$ source env/bin/activate
 pip install -r requirements.txt

响应

Installing collected packages: SQLAlchemy,MarkupSafe,Mako,python-editor,six,python-dateutil,alembic,aniso8601,click,Jinja2,itsdangerous,Werkzeug,flask,flask-Cors,flask-SQLAlchemy,flask-Migrate,pytz,flask-RESTful,flask-script
 Running setup.py install for SQLAlchemy ... done
 Running setup.py install for MarkupSafe ... done
 Running setup.py install for Mako ... done
 Running setup.py install for python-editor ... done
 Running setup.py install for alembic ... done
 Running setup.py install for itsdangerous ... done
 Running setup.py install for flask-script ... done
Successfully installed flask-1.0 flask-Cors-3.0.4 flask-Migrate-2.1.1 flask-RESTful-0.3.6 
flask-SQLAlchemy-2.3.2 flask-script-2.0.6 Jinja2-2.10.1 Mako-1.0.7 MarkupSafe-1.0 
SQLAlchemy-1.3.0 Werkzeug-0.15.3 alembic-0.9.9 aniso8601-3.0.0 click-6.7 
itsdangerous-0.24 python-dateutil-2.7.3 python-editor-1.0.3 pytz-2018.4 six-1.11.0
klf0818 回答:GitHub上类似Trello的程序的执行命令

以上项目基本上是在告诉您打开两个终端实例。在其中之一中,您必须运行

npm install
npm start

这将在默认的Webpack端口中启动前端应用程序。

烧瓶设置要求您运行virtualenv。如果没有,请使用此处的链接进行安装-https://virtualenv.pypa.io/en/latest/installation/

这样做之后,您必须按照README.md中给出的命令执行API中的命令。

virtualenv venv

source venv/bin/activate

## exit venv
exit venv

# run debug server
python manage.py server

# create db
python manage.py db init

# scan all new tables and columns
python manage.py db migrate -m "initial migration"

# apply migrations
python manage.py db upgrade

这将成功启动http://localhost:5000/api上的Flask Server。我认为您已经完成了最后一步,因此,如果一切正常,则服务器应该已启动并正在运行。

本文链接:https://www.f2er.com/3169310.html

大家都在问