Skip to content

codeamazone/miu-app

Repository files navigation

MIU

Magical Idea Universe

Maintenance

A Django app that helps you manage and keep track of your ideas and visions with full CRUD functionality. Keep track of your ideas and visions and sort them by their name, kind of idea (project, vision, try something), status (pending, in progress, completed), description and next steps.

screenshot

List Page

screenshot

The ideas page provides you with an overview of all ideas in your database. Two dropdown menus let you filter ideas by their status and their kind.

Create Page

Add new ideas to your database via the create page. screenshot

Detail Page

The detail page shows you the details of a specific idea screenshot

Update Page

Via the update page you can edit the details of a specific idea. screenshot

Delete Page

On the delete page you can delete a specific idea. screenshot

How to use locally on your computer in a Docker development container

  • Fork/clone this repository
  • Download and install Python
  • Install Docker
  • In the miu/config folder create a file named .env
  • Create a secret key by running the follwing command in your shell. The output string is your secret key. Copy it.
python3 -c "import secrets; print(secrets.token_urlsafe())"
  • Paste the secret key in the .env file like this (your secret key goes inside the '' where it says secret_key):
SECRET_KEY='secret_key'

Then, add the value for debug and the database credentials for the mysql container below the secret key like this:

DJANGO_DEBUG=True
DATABASE_URL=mysql://root:secret@db:3306/miu
  • Open the Docker dashboard (Windows) and your terminal/cmd prompt
  • change into the miu folder
  • Start the Docker container network by running the following command:

On Windows

$ docker-compose up --build

On Linux

$sudo docker-compose up --build

If you are running the containers for the first time, you need to migrate the table data to the database. For this, open another shell and find out the id of the miu container:

On Windows

$ docker ps

On Linux

$ sudo docker ps

Copy the id of the miu container and access that container in a subshell to run the migrations:

On Windows

$ docker exec -it <id_of_container> sh
# python3 manage.py migrate

On Linux

$ sudo docker exec -it <id_of_container> sh
# python3 manage.py migrate

If everything has worked, you should be able to open the app in your browser (http://127.0.0.1:8000/).



This is a pet project to play around with Django. It is a work-in-progress and will be updated continuously.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published