Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1.44 KB

README.md

File metadata and controls

33 lines (29 loc) · 1.44 KB

How to run this app

So far I was running the app with the help of XAMPP, but any similarly configured combination of Apache server and MySQL should work as well.

Prerequisites

  1. Running Apache server
  2. Running MySQL with a user priviliged for CRUD operations
  3. Git

They can be found

  • in package managers,
  • on official websites,
  • or installed by root if on linux:
    # wget https://www.apachefriends.org/xampp-files/7.1.10/xampp-linux-x64-7.1.10-0-installer.run
    # chmod +x xampp-linux-x64-7.1.10-0-installer.run
    # ./xampp-linux-x64-7.1.10-0-installer.run

Installation

  1. Navigate to the DocumentRoot directory (htdocs in case of XAMPP)
  2. Download the source code with git clone https://github.com/elias-po/simple-todo.git
  3. Navigate to simple-todo directory and create file config.ini
  4. Create a database with a table (can use dump.sql)
  5. Place database info and credentials of the priviliged user into config.ini (like in config_example.ini)
    • dblocation - database IP address
    • username - user's username
    • password - user's password
    • dbname - database name
    • dbtable - table name Note: thit is not a safe way of storing credentials
  6. In the browser go to <server url>/simple-todo