Screen 1- UI+ Backend
Templating Screens
2 min readJun 30, 2017
We find, most of the time that our code has been repeated. If we want to make a change anywhere, we have to look up for all those repeated places. Finally it becomes a nightmare.
Templating helps to reduce code, enhances readability. HTML files are templated by ejs files in my app code. ejs is a html file that accepts js to run in it, hence enabling dynamic loading of pages.
Here is my first Screen
Check out this to learn using login hasura API
Code
Link to Github
Connecting to Backend
Initially, I’m horrified how to make my login/signup work. But then few resources from youtube helped me a lot.
Resources :
https://www.youtube.com/watch?v=h4A0-53Olm4
https://www.youtube.com/watch?v=pzGQMwGmCnc&t=5s