- - 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
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
templateType in
Jumpydoll todo list
as the project nameType in
A todo list for learning Jumpydoll
in the project description and click NextType in
jumpydoll-todo-list
in the repository name and click NextClick "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: https://www.eclipse.org/downloads/
IntelliJ: https://www.jetbrains.com/idea/download/
Eclipse set up:
Click on File > Import
Expand the ‘Git’ folder and select ‘Project from Git (with smart imports). Click next
Select ‘Clone URI’ and click Next
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.
Paste the URI in the URI box of Eclipse. Then click Next.
Click Next until the wizard ends and click Finish.
IntelliJ setup:
Click File > New > Project from Version Control (or Click "Get from VCS" if this is your first time with IntelliJ)
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’.
Click “Trust Project”
After the project opens, click on Run > Edit Configurations
At the top left, click “+” > Maven
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.