Giter Club home page Giter Club logo

icom's Introduction

I-Commerce Online Shopping Web Application

Architecture

Architecture

Components

DB schema

Build

./mvnw package

Unit tests

./mvnw verify

Data Driven Testing

Spock is a Data Driven Testing framework for Java and Groovy applications.

Spock framework

Extended tests

./mvnw verify -P extended-test

Modules

End-to-End tests

TBD

Kafka

wget https://dlcdn.apache.org/kafka/3.0.0/kafka_2.13-3.0.0.tgz
tar xvzf kafka_2.13-3.0.0.tgz
mv kafka_2.13-3.0.0 kafka
cd kafka

# Start the ZooKeeper service
# Note: Soon, ZooKeeper will no longer be required by Apache Kafka.
bin/zookeeper-server-start.sh config/zookeeper.properties

# Start the Kafka broker service
bin/kafka-server-start.sh config/server.properties

Connecting to kafka on remote host:

# Change hostname in config/server.properties
listeners=PLAINTEXT://your.host.name:9092

Create topic

Create topic

bin/kafka-topics.sh --create --topic a-topic-name --bootstrap-server localhost:9092 --partitions 1 --replication-factor 1

Verify your created topic

bin/kafka-topics.sh --describe --topic a-topic-name --bootstrap-server localhost:9092

List all topics

bin/kafka-topics.sh --bootstrap-server localhost:9092 --list

Write message to topic

bin/kafka-console-producer.sh --broker-list localhost:9092 --topic a-topic-name

Read messages in a topic

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic rubik-hack.input --from-beginning

Delete a topic

bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic rubik-hack.input

MySQL

Steps:

  • Install local Mysql
  • Setup MySQL schema DDL

Docker & binary packaging

./mvnw clean verify -P boot,docker -DskipTests

TODO

  • Build docker image for restapi, workers, web-ui
  • Add contract-test, integration test for each module
  • Build kubernetes chart for application

icom's People

Contributors

tu-ngo avatar

Watchers

Trương Kim Phụng avatar  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.