Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果想进行二次开发借鉴的话,是优先采用这个next 的还是vue 得那个呀 #1

Open
424363283 opened this issue Nov 28, 2022 · 6 comments

Comments

@424363283
Copy link

No description provided.

@lfb
Copy link
Owner

lfb commented Nov 28, 2022

No description provided.

你好,nuxt是基于vue的服务端框架,技术栈是一样的哦

@424363283
Copy link
Author

嗯,这个我知道,我就是目前想吧完整的服务连通的跑起来,但是目前nodejs-koa-blog 有问题,连接数据库有问题,我Navicat 都可以连接成功了,但是项目里面启动跑就是有问题,
image
image
请问大佬这个怎么解决呀,node 小白,就想借鉴大佬的项目学一下

@lfb
Copy link
Owner

lfb commented Nov 28, 2022

嗯,这个我知道,我就是目前想吧完整的服务连通的跑起来,但是目前nodejs-koa-blog 有问题,连接数据库有问题,我Navicat 都可以连接成功了,但是项目里面启动跑就是有问题, image image 请问大佬这个怎么解决呀,node 小白,就想借鉴大佬的项目学一下

你的数据库好像还没创建数据库表,

登录数据库

$ mysql -uroot -p密码

创建 boblog 数据库

$ CREATE DATABASE IF NOT EXISTS boblog DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

image

@424363283
Copy link
Author

image
image
image
image
你好,我想请问一下,我应该怎么做才能让nodejs-koa-blog 有数据,后台管理系统能登陆,前台展示页面有数据呀

@lfb
Copy link
Owner

lfb commented Nov 29, 2022

image image image image 你好,我想请问一下,我应该怎么做才能让nodejs-koa-blog 有数据,后台管理系统能登陆,前台展示页面有数据呀

你好,启动node的项目后,可以下载一个postman工具,进行对数据增删改查

@424363283
Copy link
Author

搜噶,麻烦大佬了,我还有2个问题,第一我现在后台已经可以登陆并且发布了,但是我的next 那边获取数据没有成功,现在我的bolo-admin是http://localhost:3000/, blog-web 端口是 5002,koa-blog 端口是5001
image
我现在blog-web 去请求 5001 的接口为什么请求不成功了? 明明已经有了数据了
image
数据库里面也建立了
image
但是我的koa-blog 还是没有数据
image
是哪一步错误了,麻烦大佬指点一下,我是小白,不好意思了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants