Git Product home page Git Product logo

svelte-todo-app's Introduction

Looking for a shareable component template? Go here --> sveltejs/component-template


test

svelte app

This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template.

To create a new project based on this template using degit:

npx degit sveltejs/template svelte-app
cd svelte-app

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-app
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

Single-page app mode

By default, sirv will only respond to requests that match files in public. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.

If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for any path. You can make it so by editing the "start" command in package.json:

"start": "sirv public --single"

Deploying to the web

With now

Install now if you haven't already:

npm install -g now

Then, from within your project folder:

cd public
now deploy --name my-project

As an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.

With surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public my-project.surge.sh

svelte-todo-app's People

Contributors

dependabot[bot] avatar martinemmert avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

garrettyan

svelte-todo-app's Issues

Group to do items in projects

As a user, I want to group my to-do items in projects to create a connection between them and break bigger tasks into smaller ones

Ask before removing an item

As a user, I want to be asked for confirmation before a todo item is deleted from my list to prevent deletions by accident

Acceptance criteria

  • the user is asked before an item gets deleted permanently
  • the user is warned about, that the item cannot be restored
  • the user can cancel the deletion
  • the user can confirm the deletion

Dependent ToDo Items

As a User, I want to mark a to-do item as a dependency for my newly created todo item to create a meaningful connection between those two.

Visibility of completed items

As a user, I want to see my already completed items to keep track of what has been completed

Acceptance criteria

  • the visibility of completed items can be toggled
  • upon completion, the date will be stored
  • when a completed item is marked as incomplete, the completion date will be removed
  • the completed items are displayed at the bottom of the list sorted by their completion date

Items can be sorted by their due date

As a user, I want to sort my to-do items by their due date in an ascending and descending order.

Dependencies

  • is blocked by #3

Acceptance criteria

  • the items can be sorted by their due date
  • the sort order can be from nearest date to farthest date
  • the sort order can be from farthest date to nearest date
  • items without a due date are put at the end of the sort order

MVP UI

As a user, I want a clean and appealing UI that helps me to be more productive

Acceptance Criteria

  • the UI of the application is built with TailwindCSS

Categories for todo Items

As a user I want to categorize my to-do items to create a meaningful structure to help me organize myself

Due date for Todo Items

As a User, I want to set a due date on my todo items to help me prioritize and plan my next steps.

Acceptance criteria

  • the due date can be set via date picker
  • the due date can only be set on existing items
  • the due date can be removed
  • the due date can be set as long as the item is not completed
  • the due date ist visible on the item

Items can be sorted by their priority

As a user, I want to sort my todo items by their priority.

Blocked by #12

Acceptance criteria

  • items can be sorted by their priority
  • items with the highest priority are placed at the top, lowest at the bottom

Items are sorted by their creation date by default

As a user, I want my items to be sorted by their creation date order

Acceptance criteria

  • items store the date of their creation
  • by default, the items are ordered from the oldest item at the top to the newest item at the bottom

To-do items are displayed in a list

As a user, I want all my items to be listed without displaying the already completed items

Acceptance criteria

  • all items are displayed within a list
  • completed items are not displayed

Priority of to-do items

As a user, I want to give my to-do a priority to see which of my tasks should be completed next

Acceptance criteria:

  • the user is able to set a priority on his items
  • the priorities are as follows:
    • primary
    • secondary
    • tertiary
    • none
  • the user can change the priority as long as the item is not marked as completed
  • the priority of an item is represented in its visualization

Delete to-do items

As a user, I want to delete my previously created todo items to clean up my list and remove items that aren't needed

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.