Open Source Project Learning (iii)------AG-ADMIN environment Construction

Source: Internet
Author: User
Tags auth redis rabbitmq

I. Introduction of the Framework


Ag-admin is based on spring Cloud micro-service development platform, with unified authorization, authentication background management system, which includes user management, resource Rights Management, Gateway API management and other modules, support multi-service system parallel development, can be used as the development of back-end services scaffolding. The code is concise, well-structured, suitable for learning and direct project use. Core technology uses Eureka, Fegin, Ribbon, Zuul, Hystrix, JWT Token, MyBatis and other main framework and middleware, the front-end uses vue-element-admin components.


Module Description:



Second, the environment construction


(a), import source code

First download source to local, here Download version 2.2, the latest there may be a problem ...




Then import into idea and update maven dependencies, because Lombok is used in the project, all need to install the Lombok plugin, otherwise your IDE will report the code is missing.




The project structure is as follows




├─ace-security
││
│├─ace-admin----------------Management End service tier
││
│├─ace-auth-----------------Authentication Center
││
│├─ace-gate-----------------Gateway Load Center
││
│├─ace-center---------------Service Registration Center
││
│├─ace-monitor--------------Unified Monitoring Center
││
│├─ace-config---------------Unified Configuration Center
││
│├─ACE-API------------------Public Service Interface Pack
││
│├─ace-demo-----------------Sample Service Code
││
│└─ace-sidebar--------------calling third-party languages



(ii), installing Redis with RABBITMQ and node


Redis installation can refer to my previous Zheng Environment Building, node installation is also very simple has been the next step, on the line, after installation, but also to Amoy Baoyuan on the line.


2.1, RABBITMQ installation


Rabbit MQ is built on the Erlang OTP platform, so before installing RABBITMQ, you need to install Erlang First and download the address Http://www.erlang.org/downloads




Once downloaded, double-click to install.






After the installation is complete, create an environment variable named Erlang_home that points to the installation directory for Erlang




Add%erlang_home%\bin to path at the same time




Finally open the command line, enter the Erl




If the version information of Erlang appears, the Erlang locale is installed successfully;


Then download RABBITMQ, download the address: http://www.rabbitmq.com/download.html








Once downloaded, double-click to install.







The default installed RABBITMQ listening port is 5672, the default user name: Guest, Password: Guest.


2.2, Rabbitmq-plugins plug-in installation


This plugin is equivalent to a management interface that allows us to view RABBITMQ message queues and exchange work in the browser interface by opening a command line CD into the RABBITMQ sbin directory (my directory is: C:\Program files\ RabbitMQ server\rabbitmq_server-3.7.2\sbin), enter:


[HTML] view plain copy rabbitmq-plugins enable Rabbitmq_management

command, wait a minute, you will find a prompt for successful installation of plugins




Then restart the service, using the command (at this point, run cmd with the Administrator):

[HTML] view plain copy net stop RabbitMQ && net start RabbitMQ


After the plugin is installed, verify it in the browser input http://localhost:15672




(iii), initialization of data


Import Ace-admin/db/init.sql, Ace-auth-server/db/init.sql, respectively, after the successful import, you will create Ag_admin and Ag_auth two databases and some of the following tables:


There is no Chinese comment on the table ....


(iv). Configure the Hosts file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.