ORIGIN

E-Commerce Platform: 04 Create Project Structure

E-Commerce Platform 1 mins265 words

Create the structure of the backend part of the project.

GitHub Repository

Create a git repository and clone to local.

https://github.com/DyingDown/E-Commerce-Platform

Modules

Create some modules like this:

And then add some dependencies

Need to create five modules follow the same rule

they are ecommerce-coupons, ecommerce-members, ecommerce-orders, ecommerce-products, ecommerce-wares

pom.xml

Then we create a pom.xml file. And add the modules to it. It’s like create a root module.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>yao.ecommerce</groupId>
<artifactId>ecommerce</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ecommerce</name>
<description>union services of ecommerce</description>
<packaging>pom</packaging>

<modules>
<module>ecommerce-coupons</module>
<module>ecommerce-members</module>
<module>ecommerce-orders</module>
<module>ecommerce-products</module>
<module>ecommerce-wares</module>
</modules>
</project>

.gitignore

ignore some useless file in each module. Add content to .gitignore

1
2
3
4
5
6
7
8
9
**/mvnw
**/mvnw.cmd

**/.mvn
**/target/

.idea

**/.gitignore
TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|