Skip to content

zhuqiuyang/fullStackWebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullStackWebApp

这是一个简单的全栈web App. 基于 Deno + Vue + Mysql.

1. Client (step 2)

运行在Brower(浏览器)里的应用程序code。(html + js + css)

  • 基于 Vue.js 实现了 html 静态页面

2. Server (step 1)

运行在Linux上的 Web 服务

功能:

  • 响应浏览器HTTP请求
# 安装 unzip 解压工具
sudo apt install unzip

# 安装 deno
curl -fsSL https://deno.land/x/install/install.sh | sh

# 拷贝二进制文件
sudo cp .deno/bin/deno /usr/bin

# 检查是否安装成功

deno --version

git clone https://仓库地址

2.1 mod.js

touch mod.js

vim mod.js # add hellowold.

deno run --allow-net mod.js

curl localhost:8080

2.2 静态资源服务器

  • serve html file
// ork send
// https://github.com/oakserver/oak#static-content

2.3 启动服务

deno run --allow-net --allow-read mod.js

3. DataBase

持久化数据,保存Browser浏览器端用户需要的数据

  • client: html 页面,用户点击,发起HTTP请求。
  • server 层 api:相应client端用户HTTP请求。(通过deno 三方库,实现mysql使用)
  • linux 系统: install mysql服务,
  • 数据库:创建用户,创建表,插入数据

mysql 使用

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors