基于区块链的毕业设计EthicalEating – 伦理道德
本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计EthicalEating – 伦理道德 是一篇很好的国外资料
EthicalEating
CS 361 Ethical Eating web app by Zero Rows Returned
running locally with docker-compose
This is optional but I like testing locally with Docker, so you can do so too if you want. It’s not required to develop, you can simply run a local SQL server and run the app with node app.js.
If you’d like to run the app locally, you can download Docker Desktop: https://www.docker.com/products/docker-desktop Then from the root folder in this repo, run:
docker-compose build docker-compose up -d
The app has been configured with nodemon to hot-reload the app container whenever the source code changes. This way, you don’t have to bring the container down and back up again when you make a change in the source code in order to see the behavior reflected. This makes development faster.
If you don’t want this behavior, simply change the command: "npm run dev"
line in docker-compose.yml to command: "npm start"
and hot-reloading will no longer occur.
To stream logs: docker-compose logs -f
To stop streaming logs: Control+C
To stop: docker-compose down
To re-build, like when you change source code or similar, run docker-compose build
again, and then docker-compose up
.
You can use the –force-recreate flag if changes don’t seem to be sticking.
docker-compose up --force-recreate
You will be able to view the app locally at http://localhost:6377.
viewing the mysql database with mysql workbench
It can be useful for debugging to see what is in the database using mysql workbench, a free tool. If you would like to use the app with mysql workbench, first download the software. Then, make one small change to the docker-compose file to the db: ports: section, changing "3306"
to "127.0.0.1:3306:3306"
to expose the database on port 3306 on your localhost.
We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.
We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products.
You can always update your selection by clicking Cookie Preferences at the bottom of the page. For more information, see our Privacy Statement.
Essential cookies
We use essential cookies to perform essential website functions, e.g. they’re used to log you in. Learn more
Always active
Analytics cookies
We use analytics cookies to understand how you use our websites so we can make them better, e.g. they’re used to gather information about the pages you visit and how many clicks you need to accomplish a task. Learn more
使用mysql workbench查看mysql数据库
CS361伦理饮食网络应用程序由零行返回
running locally with docker-compose
这是可选的,但我喜欢用Docker在本地进行测试,所以如果你愿意,也可以这样做。不需要开发,只需运行一个本地SQL server,就可以运行带有节点的应用程序应用程序js.
如果您想在本地运行应用程序,可以下载Docker Desktop:https://www.docker.com/products/docker-desktop然后从这个存储库的根文件夹中运行:
docker-compose build docker-compose up -d
应用程序已经配置为nodemon,以便在源代码发生更改时热重新加载应用程序容器。这样,当您在源代码中进行更改时,您不必为了查看所反映的行为而将容器调低并再次返回。这使发展更快。
如果您不想要这种行为,只需更改docker中的命令:“npm run dev”行-合成.yml命令:“npm启动”和热重新加载将不再发生。
要流式处理日志:docker compose logs-f
停止流式日志:Control+C
停止:docker compose down
要重新构建,就像更改源代码或类似代码时,再次运行docker compose build,然后再运行docker compose up。
如果更改似乎没有被粘住,可以使用–force recreate标志。
docker compose up–强制重新创建
您可以在本地查看应用程序本地主机http://localhost:6377。
viewing the mysql database with mysql workbench
使用免费工具mysql workbench查看数据库中的内容对调试非常有用。如果你想在mysql workbench上使用这个应用程序,请先下载该软件。然后,对docker-compose文件的db:ports:section做一个小的更改,将“3306”更改为“127.0.0.1:3306:3306”,以在本地主机上的端口3306上公开数据库。
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。了解更多。
我们使用可选的第三方分析cookies来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。
您可以随时通过单击页面底部的Cookie首选项来更新您的选择。有关更多信息,请参阅我们的隐私声明。
Essential cookies
我们使用基本Cookie来执行基本的网站功能,例如,它们用于让您登录。了解更多
Always active
Analytics cookies
我们使用analytics Cookie来了解您如何使用我们的网站,以便我们能够使其变得更好,例如,它们用于收集有关您访问的页面以及完成一项任务需要多少次单击的信息。了解更多使用docker compose在本地运行的ethicalating
使用mysql workbench查看mysql数据库
部分转自网络,侵权联系删除区块链源码网
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计EthicalEating – 伦理道德