Git Product home page Git Product logo

web_bigevent's Introduction

BigEvent

黑马大事件项目

该项目代码整合了前端和后端,前端代码在/web目录下,其他目录代码都是后端代码

后端代码没有提交node_modules文件夹,若要使用请先npm install

后端关于mysql连接的配置在 /db/index.js中,默认连接数据库名称my_db_01, 数据库用户root,数据库密码111111 后端关于jwt字符串有效期配置在 /config.js中,默认8h有效期 后端服务器启动在本地3007端口上 后端接口文档:https://www.showdoc.com.cn/escook?page_id=3707158761215217 开发存在部分不一致,不喜勿怪

前端请访问 http://localhost:3007 前端在login后将后端的jwt字符串存储在了localStorage中,退出登录时,会自动清除localStorage中的token 前端监听了ajax请求,在/web/assets/js/ajaxPre.js中,对于/my请求默认填充Authorization请求头字段,保证身份认证,若身份认证失败自动跳转到登录页面 对于所有的ajax请求url参数都自动拼接了http://127.0.0.1:3007前缀

数据库是mysql,只有三张表,en_user、en_articles、en_article_cates 这里需要注意下:我这里三张表的名字和黑马刘老师的表名不一样,刘老师的是ev开头,我的是en开头的,纯属于手误造成的,后期也不方便改,大家自建数据库时注意下就行。

Postman后端接口调测工程:api_server.postman_collection.json

更多详情请见 https://blog.csdn.net/qfc_128220/article/details/120828502?spm=1001.2014.3001.5501

web_bigevent's People

Contributors

shiny809 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.