<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Akinola femi on Medium]]></title>
        <description><![CDATA[Stories by Akinola femi on Medium]]></description>
        <link>https://medium.com/@akinolafemi077?source=rss-889171af54b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xwVD2IgZTxjDUXqy</url>
            <title>Stories by Akinola femi on Medium</title>
            <link>https://medium.com/@akinolafemi077?source=rss-889171af54b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:55:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akinolafemi077/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction]]></title>
            <link>https://medium.com/@akinolafemi077/introduction-979e780e89b0?source=rss-889171af54b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/979e780e89b0</guid>
            <dc:creator><![CDATA[Akinola femi]]></dc:creator>
            <pubDate>Fri, 14 Feb 2025 07:29:26 GMT</pubDate>
            <atom:updated>2025-02-14T07:29:26.567Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Building an E-learning Platform RESTful API: My Journey and Learnings</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zyHlFpEntQVL-W9IvfHGcA.png" /></figure><h4>Introduction</h4><p>As part of my backend development journey, I recently worked on an assignment to build a RESTful API for an E-learning platform. The goal was to create a system where course providers could manage courses and students, allowing students to enroll in courses and manage their enrollments. This project was a great opportunity to apply my knowledge of Node.js, Express, MongoDB, and RESTful API design.</p><h4>Project Requirements</h4><p>The assignment required me to:</p><ol><li>Implement user authentication (registration and login).</li><li>Allow admins to create, update, and delete courses.</li><li>Enable students to enroll in courses and manage their enrollments.</li><li>Integrate MongoDB Atlas for database management.</li><li>Deploy the API on Render and document it using Postman.</li></ol><h4>Challenges Faced</h4><ol><li><strong>Setting Up Authentication</strong>: Implementing user authentication with JWT (JSON Web Tokens) was initially challenging. I had to ensure that passwords were securely hashed using bcryptjs and that tokens were properly generated and verified.</li><li><strong>Database Design</strong>: Designing the MongoDB schema for courses and students required careful thought. I had to decide how to structure the relationships between courses and students, ensuring that students could be enrolled in multiple courses.</li><li><strong>Error Handling</strong>: Proper error handling was crucial to ensure the API responded with meaningful messages. I spent time refining error responses for cases like invalid credentials, missing fields, or database errors.</li><li><strong>Deployment</strong>: Deploying the API on Render was a new experience for me. I had to learn how to configure environment variables and ensure the app connected to MongoDB Atlas correctly.</li></ol><h4>Solutions and Learnings</h4><ol><li><strong>Authentication</strong>: I used bcryptjs to hash passwords before storing them in the database. For JWT, I created middleware to verify tokens and protect routes.</li><li><strong>Database Design</strong>: I used MongoDB ObjectId to reference students in the courses collection. This allowed me to efficiently query enrolled students for a course.</li><li><strong>Error Handling</strong>: I implemented centralized error handling using Express middleware. This made it easier to manage errors across all routes.</li><li>I used Render’s to deploy the app and monitor logs.</li></ol><h3>Conclusion</h3><h4>Key Takeaways</h4><ul><li><strong>Planning is Crucial</strong>: Spending time planning the database schema and API endpoints saved me a lot of debugging time later</li><li><strong>Testing is Essential</strong>: Using Postman to test each endpoint helped me catch errors early and ensure the API worked as expected.</li><li><strong>Documentation Matters</strong>: Documenting the API with Postman made it easier to share and demonstrate the functionality.</li><li><strong>Deployment is a Skill</strong>: Deploying the app on Render taught me the importance of environment variables and monitoring.</li></ul><h4>Conclusion</h4><p>This assignment was a rewarding experience that helped me solidify my backend development skills. I learned how to design and implement a RESTful API, integrate a database, and deploy the application. I’m excited to apply these skills to future projects and continue growing as a developer.</p><p>This assignment was a rewarding experience that helped me solidify my backend development skills. I learned how to design and implement a RESTful API, integrate a database, and deploy the application. I’m excited to apply these skills to future projects and continue growing as a developer.</p><h3>Postman Collection</h3><p>You can find the Postman collection for this API here: Postman Collection <a href="https://www.postman.com/famzy077/workspace/joyvinco-website/folder/35371353-83dc43de-11bb-490b-ac15-97bd1ae496cf?action=share&amp;source=copy-link&amp;creator=35371353&amp;ctx=documentation">Link</a></p><h3>GitHub Repository</h3><p>The source code for this project is available on GitHub: <a href="https://github.com/Famzy077/TSI-E_learning_Platform">GitHub Repository</a> <a href="https://github.com/Famzy077/TSI-E_learning_Platform">Link</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=979e780e89b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>