Skip to content

yueyinger/polling-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

polling-app

运行App

  1. Clone应用到本地
    git clone https://github.com/jasonluocesc/polling-app.git
    cd polling-app-server
  2. 创建 MySQL database
    create database polling_app
  3. 修改 MySQL username 与 password 为你的数据
    • 打开 src/main/resources/application.properties file.
    • 修改 spring.datasource.username and spring.datasource.password 为相关数据
  4. 运行 app 在命令行输入 -
    mvn spring-boot:run
    默认端口 5000. 访问地址 http://localhost:5000.
  5. 插入默认权限到数据库roles表中
    INSERT INTO roles(name) VALUES('ROLE_USER');
    INSERT INTO roles(name) VALUES('ROLE_ADMIN');
    任何新用户默认注册为 ROLE_USER.

前端运行教程 (polling-app-client)

修改路径到 polling-app-client-

cd polling-app-client

安装相关包并运行前端App -

npm install && npm start

前端App默认端口 3000.

About

SpringBoot投票webapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 49.5%
  • JavaScript 43.5%
  • CSS 5.9%
  • HTML 1.1%