Giter Club home page Giter Club logo

simpletodo's Introduction

SimpleToDo

A simple to-do app using ASP.NET Core MVC 2.1

Installation

Configuring database connection

By default this application targets your MSSQLLocalDB instance. If you don't have one, you can change connection string in appsettings.json file to target any instance of Microsoft SQL Server. Just change the value of DefaultConnection. Alternatively, you can add a new key to this dictionary that contains your custom connection string and reference it in StartUp.cs:40.

Creating the database

SimpleToDo uses Entity Framework for connecting with database. Entity Framework enables programmers to use code first approach. This approach was used to create SimpleToDo application. All you have to do is follow these points:

  1. If you have a database instance on your SQL Server which is named SimpleToDoDB then either delete it or pick any other SQL Server instance.
  2. Make sure that in Solution Explorer default project is set to SimpleToDo.WebApp.
  3. Open Packet Manager Console.
  4. Make sure that in Packet Manager Console "Default project" is set to SimpleToDo.Database.
  5. Type update-database and confirm it by pressing Enter.
  6. Database migration succeeded if you see "Done." in the last line of output.

Launching the application

When database is created, you can launch web application project by pressing F5 (make sure its still a default project - its name should be displayed in bold in Solution Explorer). Now the project will build and when build succeeds a new browser window will be displayed with default page. Please note that this application works best when using Google Chrome - a small issues might occur when using Mozilla Firefox or others.

Changing number of displayed tasks per page

By default application will display 10 tasks per single page. To change this you need to modify value passed to service method in TasksController.cs:27 from 10 to your own.

Third Party software used by SimpleToDo

SimpleToDo relies on the following packages (via NuGet):

Also SimpleToDo uses these npm packages (via libman):

  • [email protected] is used for page layout (note that default version of bootstrap used for project template is 3.3.7, I've updated it to the latest version).
  • [email protected] is used to provide basic bootstrap functionalities and as a validation base.
  • [email protected] is one of the main validation frameworks used.
  • [email protected] is second one of the main validation frameworks used.
  • [email protected] is used to create a toggler in place of checkbox in search results, tasks index and task details pages.
  • [email protected] is used to display date and time pickers in creation and edition forms.
  • [email protected] is just tempusdominus's dependency.

For this software I give absolutely no warranty and I'm not responsible for their behaviour.

simpletodo's People

Contributors

jachupl avatar

Watchers

James Cloos avatar  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.