Lamin Sanneh
  • Home
  • About
  • Recent Work
  • Recent Posts
  • Experiences
  • More
    Education
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
  • Categories
  • ASP .Net
  • Devops
  • GoLang
  • Javascript
  • Laravel
  • React.js
  • Self Improvement
  • Testing
Hero Image
Laravel 11 and React 18 Login and Registration tutorial with React Redux Toolkit

Introduction

In this tutorial, we will be setting up an indepth tutorial guide of react.js and laravel 11 system for user authentication and registration. We will be using typescript on the react.js frontned, along with react redux toolkit, but do not worry as youc an follow along even if you only know javascript. React redux toolkit helps with state management. It might be overkill for a simple login registration app like this, but makes life very easy once the app codebase grows. Users will be able to register using an email as their username and password. After successful registration, they shall be able to login. We wil demonstrate the login mechanism by having a userpforile area/route in the frontend of the application which will be locked and only accessible to logged in. The frontend and backend will be on different domains, so the after logging in, we will provide the user with a token, which will be stored in localstorage of the browser. This will be send along in the header each request which requires authentication to get data back from the server. We will also need to setup cors so that our frontend domain can send requests to the backend domanin app.

    Tuesday, May 28, 2024 | 16 minutes Read
    Hero Image
    What is Technical Debt?

    Introduction

    As someone who crunches out code, whether moderately or a lot if you’re like me. You must have incurred some technical debt somewhere along the lines.

    Development approaches

    Technical debt is the term given to a certain programming scenario. Assume you had a project with a target deadline. As the technical lead of the project, you are sometimes faced with two decisions which are:

    The long and proper way

    Using this approach is the most ideal way of development. Many best practises of development are followed using this way.

      Monday, September 2, 2013 | 2 minutes Read
      Hero Image
      How to set up live reload in 5 easy steps

      Manual all the way!

      When you start out web developing, the appeal to do a lot of stuff manually might be appealing. However, once you step into intermediate to advanced level you will probably be constantly searching for tools to help automate your workflow. One such tool for me is Live Reload.

      If you are wondering what this tool does. It enables you to see html changes instantly in your browser as you type. All this happens withou you needing to refresh your browser on every change to your markup. The reload is done by the tool automatically

        Sunday, June 16, 2013 | 2 minutes Read
        Hero Image
        Underscore js, the missing Linq for c-sharp developers

        Introduction

        We all have our favourite languages that we feel most comfortable with for various reasons. One such language for me is the c-sharp language. One of the primary reasons why I love the language is a really cool feature called Linq.

        I simply cannot emphasize the amount of time this feature has saved me while doing work. It integrates seamlessly into my workflow and find myself almost subconsciously using it. And did I say super awesome chaining you could do as well just like in jquery.

          Wednesday, May 22, 2013 | 3 minutes Read
          Hero Image
          Html5 localStorage, dead simple

          Introduction

          Lets get something straight, this stuff (Html5 localStorage) should be simple, dead simple, so here we go.

          Storing Simple Data (e.g. numbers and strings)

          localStorage.setItem(keyName, myString);

          Notice the capital letter “S“ in localStorage , its necessary.

          Don’t worry localStorage is a global variable in your browser, so use it freely from anywhere.

          Retrieving Simple Data

          localStorage.getItem(keyName);

          Storing Object

          localStorage.setItem(keyName, JSON.stringify(yourObject));

          When storing objects, you would want to serialize your object into a string using “JSON.stringify(yourObject)” because local storage only stores simple data (i.e. numbers and strings), so you object gets converted into a json string.

            Saturday, April 20, 2013 | 1 minute Read
            Hero Image
            What is Cross Origin Resource Sharing and when to use it?

            The Problem

            When developing highly ajax enabled applications using javascript, you may not always be fortunate to have both the client and server side of the application be hosted on the same domain. You might be asking, what does this mean? Good question.

            I am confident that you know what a domain is. If not, then have a quick look here at the wikipedia article. Ok, so lets say you have a domain named http://www.mydomain.com.

              Monday, April 8, 2013 | 3 minutes Read
              Hero Image
              Staying Sane among all the craziness (keeping up with technology)

              A wiseman’s advice

              My dad once told me boy. Yes, literally, “boy” was the nickname he gave me for some reason. He said “you will never be satisfied if you always want to keep up with the latest and greatest gadgets”. He also said that sometimes its ok to be behind schedule a little bit. You see, my thought as a young, gadget addicted teenager was that. “This was some excuse he’d come up with just to have some breathing space from getting me the latest video games”. How naive I was though.

                Saturday, April 6, 2013 | 3 minutes Read
                Hero Image
                How learning a new programming language can help you become a better programmer?

                My Theory

                I came into first year at the University of Manchester, with a fair knowledge of programming in Java. I was fully aware that there were people out there who were well versed in other languages and using it to solve real life problems. Even with this knowledge, I did not even bother to look into any other because I hadn’t yet known the importance of learning a new programming language. I was under the impression that Java was all I needed to know. That if I knew it well enough, it could easily solve any problem I wanted to.

                  Tuesday, February 19, 2013 | 4 minutes Read
                  Hero Image
                  Understanding the ASP.NET MVC 4 Project Structure and Folders

                  Introduction

                  When I first started doing Net Mvc programming, one of the first stumbling block I had was understanding the Asp.Net MVC 4 project structure and folders. So I decided to share some of what I know now that I’m comfortable with them. This tutorial applies to both Visual Studio 2010 and Visual Studio 2012, sorry Visual studio 2008 and Visual studio 2005 folks, I was not programming .Net and or C# back in those days. This is not a What is Visual Studio tutorial, but I have a separate post coming up soon for that if you’re new to it as well. The language does not matter, either C# or Visual Basic will do. We’ll use a new Asp.Net MVC3/4 web application as the example for this post.

                    Sunday, February 10, 2013 | 4 minutes Read
                    • ««
                    • «
                    • 1
                    • 2
                    • »
                    • »»
                    Navigation
                    • About
                    • Recent Work
                    • Recent Posts
                    • Experiences
                    • Education
                    Contact me:
                    • lamin.evra@gmail.com

                    Toha Theme Logo Toha
                    © 2024 Copyright.
                    Powered by Hugo Logo