Git Product home page Git Product logo

todolist's Introduction

toDoList

Simple to-do list static page application using Django, AngularJS and Django Rest Framework

Installation

First of all, clone the repo. Then, navigate inside 'toDoList' folder

cd toDoList

Assuming that you have python-pip and virtualenvwrapper installed on your system. If not: for virtualenv see here and here. For pip see here.

Type the command:

mkvirtualenv myToDoList

or, for using python3:

mkvirtualenv -p /usr/bin/python3 myToDoList

and then, to install the required packages, type:

pip install -r requirements.txt

...and fortunately it will install django and rest framework for you.

To migrate the database, type:

python manage.py makemigrations
python manage.py migrate

Fill the database with some stuff

If you want to create your own superuser, type:

python manage.py createsupersuser

and enter your credentials.

To add some random data just to see how the application works, just execute the following script:

python populate_database.py

This script fills your database with two users, with usernames 'test' and 'panospet'. Each user has some tasks on his name. You can login with their cretentials (see next step) and see their tasks.

Run application

To run the application with the custom mini-server django provides, type:

python manage.py runserver

And then hit localhost:8000 to your browser. You now see the login screen. You can log in with the credentials of the superuser you created above, or, with the credentials of the two test users. (test users have password qwe123qwe)

You can log out and log in with some different users, to see that each of them has his own tasks. You can also create, update, delete tasks or mark them as completed.

Enjoy!

Stop the application

If you want to stop the server simply type Ctrl - C in the terminal you started the server before.

To exit the virtual environment, type:

deactivate

todolist's People

Contributors

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