All Projects → zhuangyin8 → Carrots Admin Ajax

zhuangyin8 / Carrots Admin Ajax

Licence: mit
基于AngularJS1.3.18 + BootStrap 3.3.7 + +jQuery3.2.1 的后台管理系统方案

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Carrots Admin Ajax

Ansible Config encoder filters
Ansible role used to deliver the Config Encoder Filters.
Stars: ✭ 48 (-67.35%)
Mutual labels:  json, nginx
Crossplane
Quick and reliable way to convert NGINX configurations into JSON and back.
Stars: ✭ 407 (+176.87%)
Mutual labels:  json, nginx
Docker Cloud Platform
使用Docker构建云平台,Docker云平台系列共三讲,Docker基础、Docker进阶、基于Docker的云平台方案。OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 86 (-41.5%)
Mutual labels:  nginx, angularjs
Movement
Movement is an easier, simpler way to explore and use NIEM. Want to join the Movement and contribute to it? Start here.
Stars: ✭ 19 (-87.07%)
Mutual labels:  json, angularjs
Aping
angular module to get and display data by adding html-attributes
Stars: ✭ 135 (-8.16%)
Mutual labels:  json, angularjs
Json Logging Python
Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver
Stars: ✭ 143 (-2.72%)
Mutual labels:  json
Grafanajsondatasource
Grafana datasource to load JSON data over your arbitrary HTTP backend
Stars: ✭ 146 (-0.68%)
Mutual labels:  json
Jaxon
Streaming JSON parser for Elixir
Stars: ✭ 145 (-1.36%)
Mutual labels:  json
Json2builtvalue
Json to Dart built_value classes generator
Stars: ✭ 145 (-1.36%)
Mutual labels:  json
Keycloak Config Cli
Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
Stars: ✭ 147 (+0%)
Mutual labels:  json
Goconfig
goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
Stars: ✭ 146 (-0.68%)
Mutual labels:  json
Mantle
Model framework for Cocoa and Cocoa Touch
Stars: ✭ 11,319 (+7600%)
Mutual labels:  json
Easy mock api
easy mock json api
Stars: ✭ 145 (-1.36%)
Mutual labels:  json
Daw json link
Static JSON parsing in C++
Stars: ✭ 146 (-0.68%)
Mutual labels:  json
Ngx healthcheck module
nginx module for upstream servers health check. support stream and http upstream. 该模块可以为Nginx提供主动式后端服务器健康检查的功能(同时支持四层和七层后端服务器的健康检测)
Stars: ✭ 145 (-1.36%)
Mutual labels:  nginx
Ngx Oauth
OAuth 2.0 proxy for nginx written in Lua.
Stars: ✭ 146 (-0.68%)
Mutual labels:  nginx
Musicplayer
A minimal music player built on electron.
Stars: ✭ 145 (-1.36%)
Mutual labels:  angularjs
Blur Admin
AngularJS Bootstrap Admin Panel Framework
Stars: ✭ 11,274 (+7569.39%)
Mutual labels:  angularjs
Ngx Fastdfs
nginx + lua +fastdfs Real-time dynamic compression of distributed pictures
Stars: ✭ 146 (-0.68%)
Mutual labels:  nginx
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+1440.14%)
Mutual labels:  json

项目说明

基于AngularJS1.3.18 + BootStrap 3.3.7 + +jQuery3.2.1 的后台管理系统解决方案(萝卜多后台管理系统)。 "萝卜多"人才推荐----葡萄藤旗下的主要业务之一,为人才推荐公司,同时也能对人才进行分类以方便浏览。 此项目可用来学习搭建整套网站的技术和流程。

以下是项目运行的详细说明,如果还有其他问题,请在 Issues 中提出,我会尽力解答

Technology on websites

  • [x] AngularJS 1.3.18(JavaScript Framework)
  • [x] Font Awesome(Font Script)
  • [x] Nginx 1.13.5 (Web Server)
  • [x] Twitter BootStrap(Web Framework)
  • [x] jQuery 3.2.1(JavaScript Library)
  • [x] jQuery UI 1.12.1(JavaScript Library)

页面总体规划

  • [x] 框架使用 AngularJS
  • [x] 类库使用 jQurey
  • [x] CSS 框架使用 BootStrap
  • [x] 路由使用 ui-router
  • [x] 轮播图使用 ui-bootstrap
  • [x] 文件上传使用 file-upload
  • [x] 表单验证 ng-message

实现功能

  • [x] 登录/注销
  • [x] 表格展示数据
  • [x] 可编辑表格
  • [x] 表单验证
  • [x] UEditor富文本编辑器
  • [x] 日期选择器
  • [x] 图片上传
  • [x] 支持切换主题/皮肤
  • [ ] 列表拖拽排序
  • [x] 中国行政区划信息-区划代码数据库【省、市、区县】三级联动

目录结构

|-- css                              // CSS样式目录
|   |-- skin                         // 皮肤文件目录
|       |-- darkblue.css             // 深蓝色皮肤样式
|       |-- oranger.css              // 橙色皮肤样式
|   |-- base.css                     // 基础样式
|   |-- public.css                   // 公共样式
|-- images                           // 图片文件目录
|-- js                               // JS文件目录
|   |-- constant                     // 常量目录
|   |-- controller                   // 控制器目录
|   |-- directives                   // 自定义指令目录
|   |-- factory                      // 工厂目录
|   |-- filter                       // 过滤器目录
|    |-- server                      // 请求地址与方式目录
|   |-- config.js                    // 统一配置
|   |-- router.js                    // 路由
|-- vendor                           // 富文本编辑器
|-- view                             // HTML文件目录
|   |-- admin                        // 登录页面
|   |-- BackstageManagement          // 后台管理    
|   |-- ContentManagement            // 内容管理    
|   |-- InformationManagement        // 信息管理    
|   |-- template                     // 弹出框HTML文件
|   |-- dashboard.html               // 欢迎页面
|   |-- template                     // 后台页面                        
|-- 404.html                         // 404页面
|-- index.html                       // 入口html文件
|-- nginx.conf                       // nginx配置文件
|-- README.md                        // 项目介绍

页面逻辑图

萝卜多后台管理系统脑图

最新版本百度脑图在线地址

项目截图

  • 登录页面 深蓝色皮肤登录页面(http://admin.luoboduo.com) 橙色皮肤登陆页面 动态登录页面
  • 欢迎页面 欢迎页面
  • 信息管理 信息管理公司列表页面
  • 模态框 点击删除按钮弹出框 成功删除
  • 富文本编辑器和图片上传 富文本编辑器和图片上传 富文本编辑器和图片上传动态图

在线运行此项目

系统在线运行地址

账号:admin

密码:123456

本地运行项目

0.先将项目clone 到你的电脑本地

1.nginx 官网下载 nginx

nginx

点击下载 nginx 直接下载之后 解压到相应的目录了,不用安装就可以直接用了,文件夹名字命为 nginx

2.测试nginx是否能成功启动

打开之前存储解压之后的nginx文件夹,双击nginx.exe ,这是你会发现有个黑色弹出框一闪即逝;这说明它启动了;

然后随便打开一个浏览器(推荐使用 Chrome );在地址栏输入localhost出现下图;恭喜你安装成功了;

nginx 的作用

本地文件是不能直接向测试或线上服务器发送请求的,nginx可以帮你实现。 nginx的作用简单的说,就是通过设置路径,你输入一个localhost,你访问的是你的本地文件,但这个本地文件可以向测试或线上服务器发送请求。

更多的nginx作用请 Google

怎样关闭nginx呢?因为你看不到它执行的文件,只能从任务管理器里关,但这显然是个麻烦而糟糕的办法。更好的办法,请参考下文的nginx使用技巧和常用命令。

3.nginx安装

nginx的安装非常简单,只需到其 官网 下载,这是一个压缩包文件,把它解压到自定义文件夹即可,如E:\nginx-1.13.4(安装路径下禁止中文)。

打开文件夹,第一层文件目录里就有一个nginx.exe文件,双击打开,一个黑框一闪而过,任务管理器里有nginx.exe的进程。然后打开一个浏览器,访问localhost,如果出现nginx的欢迎界面,表示你的nginx已经安装成功。

nginx欢迎界面

4.配置Nginx的配置文件

conf文件夹下的nginx.conf就是配置文件,你通过浏览器输入localhost出现的页面即为文件夹 nginxhtml文件中的index.html;所以你可以将你想要检测的项目代码放到html文件夹中,并将原本的index.html文件给删了,这个时候打开网页输入localhost,使用ctrl+F5清下浏览器缓存即出现你产品中的index.html(项目代码的首页一般会命名为index.html)页面,然后进行一系列测试看看其他功能是否实现。

  • nginx的本地配置

目标:通过在浏览器输入域名,访问本地文件

举例:在浏览器里输入localhost,访问本地E:\nginx-1.13.1\html\index.html文件(前提是这里自己先按路径写个测试用的html文件)

步骤:用记事本(其他文本编辑器Atom或者Sublime)打开你的E:\nginx-1.13.1\conf\nginx.conf文件。文件中有很多前面带#的代码代表该行是注释,可以忽略。

找到下面这段代码:

 server {
    listen       80;
    server_name  localhost;
    location / {
        root   html;
        index  index.html index.htm;
    }
 }

这段代码的作用就是在配置本地服务器,在浏览器中输入localhost,可以默认访问的根目录是nginx的安装文件夹之下的文件夹html。初始状态的时候默认访问的文件是nginx的安装文件夹之下的文件夹html之下的index.html文件(nginx的欢迎界面)。这就是为什么我们配置成功后能打开那个页面了。

简单的理解是这样的,你在浏览器输入server_name对应的localhost就是你的主机,你的浏览器将跳转到配置文件中html 文件(root)之下是我index.html 文件(index) 。 所以你要实现访问本地文件中其他文件,只需把root设置为该文件所在文件夹路径,index设置为该文件的文件名,然后重启nginx个可以实现。

  • nginx的跨域配置 目标:通过在浏览器输入域名,访问本地文件,向测试(或线上)环境的服务器发送请求

举例:通过在浏览器输入localhost,访问本地文件,向测试服务器( http://dev.admin.carrots.ptteng.com/)提供的获取用户总数的接口发送请求。

步骤:在原来的基础上配置location /carrots-admin-ajax/。加上如下location /carrots-admin-ajax/{}部分代码。参数其实就一个,proxy_pass配置为要访问的服务器的IP和端口号(没写的话是默认的8080)。其余的几行是固定的设置。

 server {
    listen       80;
    server_name  localhost;
    location / {
        root   html;
        index  index.html index.htm;
    }
    location /carrots-admin-ajax/ {
        proxy_pass http://dev.admin.carrots.ptteng.com/;
    }
 }

这段代码的作用可以认为是,调用接口时,用到/carrots-admin-ajax/的部分将被替换为http://dev.admin.carrots.ptteng.com/。

5.修改配置文件

上面说到配置可以不修改,但在实际的测试过程中,一般不大可能会将产品往nginx文件里的html文件夹中塞,这个时候咱们就得改下配置了;请打开nginx文件夹下的conf文件夹,里面有个nginx.conf文件,用文本编辑器 (Atom, Sublime或者微软自带的文本编辑器)打开它。

当你不修改配置文件时,localhost 默认显示的是nginx目录之下的html文件夹之下是index.html文件 配置文件 nginx.confroot html;(代表文件夹nginx下的html文件夹); index index.html index.htm(代表文件夹nginx下的html文件夹的index.html或者index.htm); ,要将它改成你想要检测的产品的路径(也可不修改,将你想要检测的产品的全部文件复制到默认网站根目录为../nginx/html中)。

将配置文件../nginx/conf/nginx.conf其中的

location /
{
    #root:里面配置了root,表示当匹配这个请求的路径时,将会在这个文件夹内寻找相应的文件,这里对我们之后的静态文件伺服很有用。
    root html;
    # index:当没有指定主页时,默认会选择这个指定的文件,它可以有多个,并按顺序来加载,如果第一个不存在,则找第二个,依此类推。
    index index.html index.htm;
}

改为

location /
{
    #root:里面配置了root,表示当匹配这个请求的路径时,将会在这个文件夹内寻找相应的文件,这里对我们之后的静态文件伺服很有用。
    root html; # 将 html 修改为你测试产品文件的文件夹(我一般不修改)
    # index:当没有指定主页时,默认会选择这个指定的文件,它可以有多个,并按顺序来加载,如果第一个不存在,则找第二个,依此类推。
    index index.html index.htm; # 将 index.html 修改为你测试产品文件的文件夹首页文件名(我一般不修改)
}

然后重启nginx。

6.nginx使用技巧和常用命令

因为nginx在使用时要经常重启,所以最好在命令行使用nginx,效率比在任务管理器里找到进程关闭,然后再双击打开高很多。

你只需要记住几个命令即可:

  • 开启nginx命令:start nginx
  • 重启命令:nginx -s reload( 修改nginx配置文件后重新启动nginx服务 )
  • 关闭命令:nginx -s stop

7.完整的nginx配置文件在项目中的nginx.conf 文件,可以直接替换你的nginx 配置文件

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].