This is the "Lyfetree" repository. Lyfetree is an app for documenting personal accomplishments and "skills" achieved in life. The purpose of this app is for it to be used as a personal online diary. This project was brought to life purely for fun and we are not actively working on this repository.
No user experience requirements have been set yet.
No user stories have been created.
No design requirements have been set.
No explicit features have been requested/deployed.
-
- The project uses the django web framework as a base.
-
- The project uses Python based on the django framework to serve functionality of the app.
-
- The project uses SQLite for databases.
-
- The project uses HTML to create pages inside the django project.
-
- The project uses CSS to style the application.
No tests have been applied.
To be done.
For this installation guide it is assumed you have already installed Python and the packaging tool pipenv
on your local machine.
You can install the tool via pip install pipenv
in your command line after installing the latest Python version.
How to install and run the "Lyfetree" app on a local server/machine:
- Clone the repository.
- Open the terminal and cd into the local repository folder.
- In the repository, create a file called ".env" in the root folder of the repository for enviromental variables and generate a secret key (you can use whatever generator you like or type in any prefered combination of letters, numbers and symbols - but keep it strong, safe and secret)
- Paste your secret key in quotation marks in the first line of the .env file like this:
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1
DB_ENGINE=django.db.backends.sqlite3
DB_NAME="yourdatabasename".db
DB_USER="yourusername"
DB_PASSWORD="yourpassword"
DB_HOST=localhost
DB_PORT="yourport"
SECRET_KEY="yoursecretkeygoeshere"
- Now that security is set up, you can create the local enviroment. Type
pipenv install
to install the enviroment and all dependencies. - Type
pipenv shell
to open the local enviroment and the corresponding shell line. - Now migrate the app to create a local database with
python manage.py migrate
. - Run the local server via
python manage.py runserver
. - Click on the local server IP given in the terminal to open the app.
- Have fun playing around!
Credits to @CevikKubat and @JapahaPapaya for actively contributing to this project and working things out together.