Code Monkey home page Code Monkey logo

blazor-todo-app's Introduction

Learning Blazor Web App by making a Todo App

This Todo app project was created to learn CRUD operations using Blazor Web App.

Technologies

  • Blazor Web App (C#): Blazor is a framework for building interactive web UIs using C# instead of JavaScript.
  • MySQL: A popular open-source relational database management system.
  • Bootstrap: A front-end framework for developing responsive and mobile-first websites.
  • MudBlazor UI library: A UI component library for Blazor applications, providing reusable components and layouts.

Functionalities

  • Authentication: Users can register and log in to access their own todos. There's also the option to edit their profile details.
  • Add a Todo: Each user can add a todo item, and only they can access their todos.
  • Display Todos: Todos registered in the database are displayed to the current user.
  • Update a Todo: Users can edit and update their existing todos.
  • Delete a Todo: Users can delete their todos.

Get Started

To set up the project, follow these steps:

  1. Configure Database Connection:
    • Open the appsettings.json file and replace the placeholder values with your actual database connection details:
      "ConnectionStrings": {
        "DefaultConnection": "Server=server;Port=port;Database=mydb;User=root;Password=pass;"
      },
    • Example
      "ConnectionStrings" : {
         "DefaultConnection" : "Server=localhost;Port=8081;Database=MyTodoDatabase;User=fadilix;Password=password123;"
      },
      
  2. Modify Database Configuration:
    • If you're using a database other than MySQL, adjust the database configuration in the Program.cs file accordingly:
      var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
      builder.Services.AddDbContext<AppDbContext>(options => {
             options.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString)));
      };
  3. There you go

Outcome

This project provided an invaluable learning experience. Although I faced challenges initially, I've made significant progress and have gained confidence in my abilities. Continuing to iterate and refine this project will undoubtedly enhance my skills further.

blazor-todo-app's People

Contributors

fadilix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.