This should give detailed explanation on how to clone and run the Yizsell Facebook Bot.

Yizsell Inventory/Point of Sale System's Facebook bot.

The application which is developed using spring boot, a java framework, has its dependencies managed by maven.

  • To run the application, please ensure that java(min version 1.8), and maven are properly installed to on your machine

    • verify this with the command java -version, javac -version, and mvn --version on your terminal.
  • Clone the dev branch, if in master, checkout to remote/origin/dev

  • Create a .env file in the applications src/main/resources folder, and specify the following:
    1. DATABASE_USERNAME
    2. DATABASE_PASSWORD
    3. DATABASE_PORT
    4. DATABASE_NAME
    5. SERVER_PORT
    6. LOCAL_HOST_URL
    7. TIME_ZONE
  • NB: Do not use an empty string as password, ensure you provide the correct username and password to your DB server. If any of the values is not specified correctly, the app wont start.
  • Examlple: DATABASE_PORT=3306
  • NB: The last three variables may not be specified as they have have default values, ensure however that port 8071 is open and free in your machine. The default values are:
  • SERVER_PORT=8071
  • LOCAL_HOST_URL=localhost
  • TIME_ZONE=useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
  • ##### Lunch the application with the command mvn spring-boot:run
  • NB: If app doesn't start, then load the .env file with the command: source ./src/main/resources/.env, this command should be run from the project root directory. After this re-run the app again.

Built With

Share this project:

Updates