Skip to content

eggsy84/java-webapp-coding-week

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

National Coding Week

Tutorial

This README provides instructions for the Java coding track as part of National Coding Week. It will provide step by step instructions for getting your laptop set up and ready to go.

If you are having any problems with the instructions below please come along to the coding picnic slightly earlier and we can help you get your laptops ready.

###1. Install Git

(I already have Git installed, skip me to step 2)

The sample starter code for the event is stored on GitHub . In order to get a copy of the sample code we need to firstly install Git version control.

Follow the instructions on the following pages:

Mac https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-on-Mac
Windows https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-on-Windows
Linux https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-on-Linux

###2. Install Java

(I already have Java installed, skip me to step 3)

Next step is to install the Java Development Kit (JDK).

Windows

Further details on Windows installation can be found on the Java website.

MAC OS

###3. Install IntelliJ

(I already have installed IntelliJ, skip me to step 4)

To make things a little easier we'll make use of an Integrated Development Environment (IDE) called IntelliJ.

###4. Clone the tutorial code base

(I have already cloned the code, skip me to step 5)

The final preparation step is to clone the source code from GitHub.

  • Start IntelliJ and you should see a screen similar to figure 1 below. Figure 1 IntelliJ Startup

  • Click 'Check out from Version Control' and you should be presented with a screen similar to figure 2.

Figure 2 IntelliJ clone

  • Click Clone

###5. Start your web application

(I have already started the web application, skip me to step 6)

Once the code has been cloned to your machine, we can do the fun part and start up the application.

  • Click the 1 : Project link shown in the top right of the IntelliJ screen

Figure 3
IntelliJ project link

  • Navigate to the Java file called Application

Figure 4
IntelliJ project link

  • Right click the file
  • Click Run Application.main()
  • You should start to see output of the application starting up.

###6. View your web application

Open up your favourite web browser at go to:

http://localhost:8080/greeting?name=java

Try replacing 'java' with your name ;)

Useful web sites

Git version control

GitHub Project

CodeUp Manchester

ResponseTap

Spring form submission guide

Spring validation guide

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published