213 views

One of the best features of Wakanda 2.0 is the ability to use templates for both backend and frontend.

Templates are not new to web development, but templates that can integrate frontend (mobile or web) and backend seamless, that is a game changer for productivity.

The Wakanda’s template system can be built based on any project you have in JavaScript or TypeScript.

It may contain a database (including external databases schemas such as MySQL or MSSQL), workers, modules, events, mobile or web folders. The Wakanda templates can be used separately or together to jump-start any project.

How about an example?

Let’s assume that you have worked on a Login system for your backend. This login system is using a Wakanda database table (User),  it has the ability to encrypt passwords, it has events and methods to update users, and the capacity to load some initial data.

You can find and install the Login backend from github: <br>https://github.com/rmello4d/LoginTemplate

After you have successfully installed the Login backend, now let’s create a project that will use this backend? Click on “Create a new Solution” then choose for the backend the recently added Custom Login template (see below)

Once you have created your project, your Solution folder should be showing the following files:

 

You now have a Login template to start ANY project ! You can extend this concept to anything you want, you could create a template that has parts or your entire backend ready to be used in a new solution. Imagine the benefits of having lots of templates for your team productivity?

 

Here a few tips:

  • The bootstrap.js file will define the login manager (which will be located in the /modules folder)
  • The bootstrap.js file will initialize some testing data via a worker (this will guarantee that every time you start the server, your User table will be refreshed and ready to accept connections
  • the file testAPI.js can be executed to see if your Login is working properly
  • the /Workers/initData.js  creates the demo user
  • the /modules/login/login.js will export the login listener
  • the table User uses HA1Key to encrypt and safely secure passwords

 

Need more help ?

 

If you have any doubts after installing and using this Login backend, you can book a one-on-one time with me here.

In the video call, I will answer all your questions and dissect all the details of this Login Template.

PS. booking takes less than 1 minute!

 

 

 

 

Go ahead and start a project with your Login backend! You can also extend the functionality and save a new template with all your improvements.

Now … Wouldn’t be awesome to create a frontend (mobile or web) that uses this Login backend? 

Stay tuned, a new post about that is coming soon