ATP Contribution¶
Building a local development environment¶
This article will guide users on how to build the atp and atp-fe modules locally, helping developers to quickly understand, develop code.
The local activation of the atp depends on:
- Service Center
- DataBase
- UserManagement
where the local activation of atp-fe depends on:
- WebsiteGateway
- UserManagement
- atp
So in order to build a local development environment, the final start sequence is Service Center->DataBase->UserManagement->atp->WebsiteGateway (atp-fe)
Service Center¶
1.Download Service Center
2.Run the start-service-center.bat and start-frontend.bat after decompression
DataBase¶
1.Download, install, start Postgresql latest version
2.setting the login name and password, such as postgresql/root
3.Create a database called atpdb
4.Create table structure based on database statement in atp deployment document
5.Create a database called usermgmtdb
6.Create table structure based on database statement in usermgmt deployment document
UserManagement¶
1.download the user-mgmt-be code and user-mgmt-fe code
2.install node.js and npm, enter the user-mgmt-fe folder, run npm install
and npm run build
3.create a static folder in the src/main/resources/ folder in user-mgmt-be
4.copy the contents in the dist folder compiled by user-mgmt-fe into the static folder of user-mgmt-be
5.Configure runtime environment variables for MainServer in the compiler (where IDEA is used as an example)
6.Run the MainServer function, start UserManagement
atp¶
1.download the atp code
2.configuring the runtime environment variable for atpApp in the compiler (where IDEA is used as an example)
3.run atpApp function, start atp
atp-fe¶
1.Download the atp-fe code
2.enter the atp-fe folder, run npm install
and npm run build
3.download the website-gateway code
4.Create a static folder in the src/main/resources/ folder on website-gateway
5.copy the contents in the dist folder compiled by the atp-fe to the static folder of website-gateway
6.Modify the server.port
in the /src/main/resources/application.yaml document in the website-gateway
8080 `
7.Configuring runtime environment variables for GatewayApp in the compiler (where IDEA is used as an example)
8.Run GatewayApp Launch WebiteGateway and atp-fe, browser access to http://127.0.0.1:8080/ to access the atp homepage