Skip to content

This project is the one built as a sample of final solution where integrating React, Spring-Boot and MongoDB

License

Notifications You must be signed in to change notification settings

cimela/e-restaurant

Repository files navigation

e-Restaurant

This project is the one built as a sample of final solution where integrating React, Spring-Boot and MongoDB
All following commands must be executed at the base folder

Table of Contents

Why do we use this project structure?

We have been applied this project structure in several projects and there some benefits from using it:

  1. Be able to extend and develop new features/functions at init new functions easily in short time.
  2. Can adapt new database in project with similar functions.
  3. Easy to manipulate the number of functions when providing the production for client.
  4. Migrate from component-based web application to micro-services system with few changes at framework layer itself.
  5. Avoid the conflict in code when working in team.

Versions and Release Plan

  • Current version: v0.0.1 - Initial Stage
# Name Description Status
1 Init Build project structure with base code, prepare documents, conventions will be applied in this project and configure github On-going

How to start with this project

  1. Ensure that all the required programs are available.
  2. Build whole project with the corresponding profile.
  3. Execute following command in other to generate the Eclipse configuration for all modules projects
mvn eclipse:eclipse
  1. If you want to execute the application, move to main-app project and run this command
mvn spring-boot:run

Requirements

These programs should be available to use this project

# Programs Version
1 Java 1.8+
2 Maven 3.5.4+
3 NodeJS 8.11.4+
4 MongoDB 4.0.1

Profiles

There are 2 kind of profiles to build this project

  • production: this build will provide the final product with all current source code.
  • dev: this build will help developers reduce the project building time since only the related parts will be built.

For production

mvn clean install -Pproduction

Note: this command must be executed at the first time after getting the code to generate the front end build.

For dev

Front End

mvn clean install -Pfrontend

This command will re-build the front end part and integrate with the final product

Back End

mvn clean install

This command will re-build only the back end part with the final product.

How to run project

Execute following command

java -jar main-app/target/eRestaurant.jar

For debugging, execute following command and the debug port is 8000

java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -jar main-app/target/eRestaurant.jar

Database Details

You can customize the database configuration at main-app/src/main/resources/application.properties

# Info Details
1 host localhost
2 port 27017
3 collection e-restaurant

Coordinators

# Members Email
1 Quyen Phan quyen.it1423@gmail.com
2 Lam Ho hotienlam@gmail.com

About

This project is the one built as a sample of final solution where integrating React, Spring-Boot and MongoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published