Skip to content

Latest commit

 

History

232 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeliFast Backend

Getting started

You will need a MYSQL community server installed on your pc to simulate a SQL server on your local network. You'll need a MYSQL workbench to access and configure your SQL server. Lastly you'll need IntelliJ IDE to open the Java files for the Backend Code

  • First you'll need to install MYSQL Community Server and MYSQL Workbench.
  • Second, you'll need to install IntelliJ IDE
  • Third, you'll need to clone the files from GitLab to your local Git Repo
  • Fourth, you'll need to connect your SpringBoot to your Local SQL Server

Setting Up MYSQL

Setting up IntelliJ

Cloning files from GitLab

-Install Git on your PC if you do not have it installed previously

  • Create a new folder on your Desktop or Documents Folder (where you want your files to be)
  • Open up a terminal on that folder (Right-click on the folder and Open a new Terminal on the folder)
  • In the terminal type the following lines
git init
git remote add origin https://git.fdmgroup.com/zahra.mohamed/delifast-backend.git
git pull origin main
  • To pull and access from another branch in GitLab
git fetch
git checkout -b {BRANCH NAME THAT YOU WANT TO PULL}
git pull origin {BRANCH NAME THAT YOU WANT TO PULL}
  • git fetch fetches all the available branches from GitLab
  • git checkout -b creates a local git branch and moves directly into the branch after creation
  • git pull pulls the branch from GitLab to your Local Repo
  • For example git pull origin UAT will pull UAT Branch from GitLab to your local branch

Setting up MySQL password for SpringBoot environment

After you have configured your MYSQL Server and Workbench and IntelliJ, Open your IntelliJ IDE and the folder that contains your backend code

  • Go to Edit Configuration on the left of Run Button (Run Button is green triangle play button on the top right menu)
  • Modify Options to allow VM Options
  • Under VM Options add -Dspring.datasource.username=(MYSQL USERNAME) -Dspring.datasource.password=(PASSWORD)
  • Create a Schema in your MYSQL workbench called delifast
  • Run the program from DeliFastBackendApplication

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages