DEV Community

Cover image for Amplication - Creating your First Service
Arnab Chakraborty
Arnab Chakraborty

Posted on

Amplication - Creating your First Service

What is Amplication?

Amplication is an open-source flexible tool for developing a full-fledged backend for an application within minutes. Developers only have to create data models and do the configuration using their interactive UI or CLI, and Amplication will generate a NodeJS application with fully functional REST APIs along with an Admin UI, based on the data models, authentication, and role-based authorization done while configuring the application. It also allows the developers to download the generated code and customize it according to them into the application.

Amplication

Step 1: Creating a New Service

Projects Page

  • You can change the Workspace by selecting or creating a new one in the left pane of the Projects page.

Workspace Pane

  • Now, to create a new service, click on the Add Resource button on the top-right section and from the drop-down select Service.

Create Service option

  • In the New Service page, leave everything as default and click Create Service at the bottom-right corner to create an Empty Service.

New Service page

  • Upon clicking the Create Service button, the page reloads and brings you to the Service Overview page.

Service Overview Page

Step 2: Create an Enitity

  • In the Service Overview Page, under Entities, click on Go to Entities to visit the Entities Page. You can also click on the Entities icon in the left side bar.

  • Once on the Entities Page, click on Add Entity to create a new entity.

Entities Page

  • In the New Entity dialog, type "Project" as the name of the entity and then click Create Entity.

Create Entity dialog

  • You will see that 3 fields, namely, ID, Created At and Updated At have been created for you by default. You can add more fields by typing a field name in the Add Field box and then clicking +.

  • Create fields Name, Description, Start Date and Owner by typing each field name and clicking +.

Add Name

Add Description

All fields added

Step 3: Connect to Github

  • Click on Connect to Github at the bottom-left corner of the screen.

Connect to Github

  • You should appear at the Sync with Github page. Now click on Connect to Github.

Sync with Github

  • You'll have to authenticate Github with Amplication. The popup window will allow you to download Amplication in a selected repository of your choice, available on your Github account.

Github authentication

  • Upon selecting the repository, click Install. Your service gets synced with the repository you've selected.

  • Back in Sync with Github page, click on Select Repository and select the one you have selected earlier in the popup dialog box.

Select Repository

Step 4: Commit you Changes

  • On the right side of the screen, you'll observe a Pending Changes panel. This panel lists all the changes you've made to your service which are not committed to your Github repository.

Pending Changes

  • Click on Commit changes and build. All changes will be committed. A build of the first version of your service is automatically created!

  • Go to your Github repository and visit the Pull Requests section. You'll be able to view the Pull Request made by Amplication to your repository. Click on the Pull Request and click Merge pull request.

Pull request

  • Back in the Amplication site, you can click on Go to view code to view the code committed to your Github repo.

View Code

Conclusion

Amplication is a relatively new platform and there's lot of scope for it to succeed. For more information you can always go through their Documentaion. To contribute to Amplification, check out their repository on github. To join their community, join their Discord server.

Top comments (0)