- Open your
cmd.exe
(Run as Administrator) - Go to the root of your C: drive
C:\>
- Copy
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
and run it in the command promt to install Chocolatey onto your system. - After the installation is complete, restart your
cmd.exe
and typechoco -v
to verify the installation completed without a problem.
Using cmd.exe is not an alternative, first thing to do is download and install a good Console Emulator.
- Open your
cmd.exe
(Run as Administrator) (for the last time) - Run:
C:\> choco install cmdermini
- Find the executable
Cmder.exe
file on your system and pin it to your taskbar for easy access.
- Open your command line (Cmder)
- Run: C:>
choco install jdk8
- Restart your console and run
javac -version
to verify installation.
- Open your command line (Cmder)
- Run:
C:\> choco install maven
- Restart your console and run
mvn -v
to verify installation.
- Copy the repository url from here
- On your local pc, create a folder in a location of your choise. e.g.
c:\my_projects\firmadanteklif
- Run this command to clone the repository on your local machine.
C:\>my_projects\firmadanteklif>git clone https://github.com/yonetmen/firmadanteklif-application.git
File
>New
>Project from existing code...
- Locate and chose the root folder of your project (firmadanteklif)
- Chose
import project from external model
and selectmaven
and clickNext
- On the next meny, check the
import maven projects automatically
box and clickNext
- In the remaining menues, just click
Next
and finally clickFinish
to complete import process - Intellij will resolve all the dependencies for the project at this point, just wait Intellij to complete.
Now, when our development envirenment is ready to write some code, we need to setup MySQL server as well before we can run the application successfully.
- Click here and download the mysql-installer-community-8.0.15.0.msi
- When you click on the link above, it will take you to mysql download page. At this point follow the instructions on this youtube clip from the current time. But read the next step before you doing that.
- While you are watching it, when you come to this point you need to select one more component before continue to follow the instructions. You need to click on
MySQL Connectors
, expend the submenu ofConnector/J
and select the available version as well. Read next step as well. - When you come to this point to choose a username and password, choose
admin
for both username and password since our application is configured to use these credentials to connect to the database. - When you complete installation and while your MySQL Workbench is open, click your
admin
connection to open up mysql console and typeCREATE SCHEMA firmadanteklif
and clickCTRL
+Enter
in order to run the query & create the application database.
At this point everything should be ready to start our application. In order to that go to Intellij and click on the little green play button (right under the top navigation menues) and watch the console . You should see something like this at the end of console output to confirm that everything worked fine.
Tomcat started on port(s): 8080 (http) with context path ''
Started Application in 5.941 seconds (JVM running for 6.968)
Now you can open your browser and navigate to http://localhost:8080
to test the application.