Opening Ceremony with the Director of Politeknik Tuanku Syed Sirajuddin, Mr Abdul Malek Bin Hassan, Rector of Institut Teknologi & Bisnes Asia Malang, Miss Risa Santoso, & CEO of ALA Startup. Images of The Meeting I've learnt a lot during this meeting, what the company is about, the tools I need to use, and the task that will be given to me. I look forward for a bright future from this day onwards, Insyallah.
Last Week I mentioned about the usage of Content Management System, ButterCMS that was recommended by the company. This week we had to change to another CMS, strAPI, a Headless CMS. StrAPI is better then ButterCMS because it uses a local database, postgreSQL. Local database are much more secure and have lower latency, according to the company. Below are the images of this week's work. In the back-end side for this project, we have to download the strAPI plugins first before we can use it. After installing strAPI in the back-end, we have to connect it to the postgreSQL database. The postgreSQL database needs be run on pgAdmin4 and we have to create a database name, for example, 'blogdb'. After the connection is successful, we type in " yarn develop " in the command line and an admin interface will pop up. In this admin interface user can manage the front-end of the blog. From this page we can add newer blog post into the front-end of the blogsite. I will now demons...
On the third week, we are supposed to use PostgreSQL as a database to connect to our blogsite. This is considered as back-end programming. This is still new territory for me so the learning curve is very steep, but I've been trying my best to make it succeed. The supervisor has been very helpful by sending us Youtube tutorials on how to connect to the database and make this function works. But unfortunately the tutorial on Youtube uses different type of database, so I have to find a way make it work with PostgreSQL. The Image below is how I try to do the connection from the blogsite to the database in Visual Studio Code The Image below is the structure of the database, with all its tables such as users, posts, comments and messages The Image below shows how the blogsite is supposed to function when a user tries to make a post. They can write the title, the content and then publish it.
Comments
Post a Comment