Log in
Sign up
Documentation
  • - Quick start guides
  • - How Jumpydoll works
  • - Tutorials
  • - Java/Spring Boot tutorial
  • - Step 1: Introduction
  • - Step 2: Setting up the project
  • - Step 3: Building the first API endpoint
  • - Step 4: Storing data in MongoDB Atlas
  • - Step 5: Adding more API endpoints
  • - Step 6: Creating a user interface
  • - Step 7: Conclusion

Step 2: Setting up your project - Java/Spring Boot tutorial

  • Creating your project
  • Setting up your IDE

In this step, you will create a hosted project on Jumpydoll. You will also set up the local development environment.

Creating your project

To create your project:

  • Log into Jumpydoll and go to the application create page (https://jumpydoll.com/applications/create)

  • Select the Spring Boot template

  • Type in Jumpydoll todo list as the project name

  • Type in A todo list for learning Jumpydoll in the project description and click Next

  • Type in jumpydoll-todo-list in the repository name and click Next

  • Click "Create app"

After creating the app, you will be redirected to your project's information page. This page lets you add information to help you showcase your project. You can describe your project in detail, as well as the motivations or challenges you faced. This page also contains a link for you to manage your application. Click on this link.

On the management page, you can see the code repository, build status, and application configuration. When you create a project, Jumpydoll creates a new GitHub repository in your account containing the initial Java code. When you make a change to this GitHub repository, your code will automatically build and deploy to our servers. You can make changes in the GitHub browser editor, but for this tutorial, you'll be developing the application in your local IDE.

Setting up your IDE

We recommend you have a Java IDE installed for local development. With an IDE, you can easily write new code and test it immediately. Eclipse and IntelliJ are the most common Java IDEs, and this tutorial will show you how to set up your project in either IDE. If you do not already have one of these IDEs installed locally, please install one of them using the links below:

Eclipse set up:
  1. Click on File > Import

  2. Expand the ‘Git’ folder and select ‘Project from Git (with smart imports). Click next

  3. Select ‘Clone URI’ and click Next

  4. To find the repository URI, go to your GitHub repository in your browser (you can reach it from your application details page). Click the green ‘Code’ button and copy the HTTPS URI.

  5. Paste the URI in the URI box of Eclipse. Then click Next.

  6. Click Next until the wizard ends and click Finish.

IntelliJ setup:
  1. Click File > New > Project from Version Control (or Click "Get from VCS" if this is your first time with IntelliJ)

  2. To find the repository URL, go to your GitHub repository in your browser (you can reach it from your application details page). Click the green ‘Code’ button and copy the HTTPS URI. Paste the URI in the URL box in IntelliJ. Then click ‘Clone’.

  3. Click “Trust Project”

  4. After the project opens, click on Run > Edit Configurations

  5. At the top left, click “+” > Maven

  6. In the ‘Run’ box, type ‘spring-boot:run’ and click ‘OK’

After you have imported your project, you can click “Run”, and the service will be running on your local computer. Open http://localhost:8080/jumpydoll-todo-list/ in your browser. You should see your application running just as it does on Jumpydoll. From here, you can start building the backend REST API.

Next, you will create your first API endpoint to return data.

Step 1: Introduction to JumpydollStep 3: Building your first API endpoint
Try Jumpydoll and host your own project

• Sign up with a GitHub account
• No setup required - start right in your browser
• Start your first project in 5 minutes
Get started for free

Jumpydoll

About

Project Gallery

Sign up

Contact

Email: brian@jumpydoll.com

© 2022