Giter Site home page Giter Site logo

nuux14 / todolist Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.89 MB

A blazor server todo list app with .NET 7 using SQLite Database

License: MIT License

HTML 26.92% C# 24.44% CSS 48.65%
blazor blazor-server entity-framework-core sample sqlite-database balzor-with-sqlite

todolist's Introduction

Blazor Server Todo list app

MIT License Open Issues

A simple asp.net core blazor server todo list app (.NET 7). In this project we are using SQLite database

Visual Studio Code (or any code editor)

  1. Navigate to the TodoList folder

  2. If you haven't installed the EF Core Command Line Interface (CLI), install it by following these instructions. Choose the latest stable version (the project file currently ships with version 7.0.9).

  3. This migration step has already been done but for reference this is what you'd have done:

    dotnet ef migrations add Initial
    

    or if you would want you could specify the DbContext option like this:

    dotnet ef migrations add --context TodoDbContext Initial
    

    to set up the database migrations (already done).

  4. Run

    dotnet ef database update
    

    to create the TodoList database.

  5. Type

    dotnet run` or `dotnet watch
    

    to start the server. Navigate to the port specified.

Note: the demo app is designed to create the TodoList database the first time you open the web page. This may result in a delay of up to several minutes on first load. This is normal and is just used to make setup easier. Subsequent runs should load faster.

Migrations for TodoList Database

The context for TodoItems (TodoDbContext) resides in the TodoList assembly. To create a migration, you must specify the executable startup project and the context name. This command will create a migration in the Migrations folder (assuming this is run from the root of the project directory):

dotnet ef migrations add  InitialTodoList

Submit any feedback, questions, suggestions, or issues here.

Regards,

Mubarek Abdi

@nuux14

todolist's People

Contributors

nuux14 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.