Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tm-kn/cht2520-assignment-1-django


https://github.com/tm-kn/cht2520-assignment-1-django

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

time tracker
============

This is a web application of a web tracker written in Python using the Django
web framework.

Set up local environment
------------------------

Requirements to run the project VM are:

- Vagrant
- VirtualBox

.. code:: sh

vagrant up
vagrant ssh

The VM comes with aliases:

- ``dj`` - shortcut to ``django-admin``
- ``djrun`` - shortcut to ``django-admin runserver 0:8000``

Create database and superuser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: sh

vagrant ssh
dj migrate
dj createsuperuser

Start the development server
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: sh

vagrant ssh
djrun

The application should be available at http://localhost:8000/.

Compile static files
~~~~~~~~~~~~~~~~~~~~

.. code:: sh

vagrant ssh
npm install
make static

Run tests
~~~~~~~~

.. code:: sh

vagrant ssh
make lint
make test