Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a5d7a9c
added slim router and composer support
May 29, 2017
abe5705
added smarty support
May 29, 2017
0851c96
added doctrine/dbal support
May 29, 2017
9473212
autoload controllers with composer
May 29, 2017
6c8072b
added first LoginController and refactored all authentication related…
May 29, 2017
5078812
added registration controller and refactored registration pages
May 29, 2017
7e43987
added about controller and refactored about page
May 29, 2017
e30cd45
added project controller and refactored projects list page
May 29, 2017
482dfdf
added middleware that handles all flash messages and use absolute urls
May 30, 2017
38fb7ca
added names to routes so redirect can be done by route name
May 31, 2017
243de17
improve keeping session messages on unexpected errors and redirects
May 31, 2017
83ac488
refactored project edit and view pages
May 31, 2017
e895111
add middleware that controls what pages are accessible by non-members
Jun 1, 2017
ee780f6
added controllers for terms, contacts and donation pages and refactor…
Jun 1, 2017
2d8cb4b
require Parsedown with composer
Jun 1, 2017
f732451
added members controller and refactored members page
Jun 1, 2017
25e9b36
added shop controller and refactored shoplist page
Jun 2, 2017
0ad45b8
Component controller added components list view refactored
Jun 10, 2017
3b17743
search page refactored
Jun 19, 2017
eaf5a97
public components refactored
Jun 19, 2017
027baba
refactored component add/edit/view pages
Jun 19, 2017
47e7c98
added ajax controller and method for increasing/decreasing quantity/o…
Jun 19, 2017
492b35c
refactored autocomplete for name, package, manufacturer
Jun 19, 2017
46f4908
remove unused files
Jun 19, 2017
9428ea6
added google analytics
Jun 19, 2017
353d270
configuration for smarty compiled templates
Jun 19, 2017
127e144
refactor error pages
Jun 19, 2017
742cc17
add php version requirement
Jun 19, 2017
e14ccd6
remove unused error pages
Jun 19, 2017
a170e74
move index page, all js and css files under htdocs
Jun 19, 2017
c8d4ba3
remove ajax increase/decrease methods when adding new component
Jun 19, 2017
25316be
move db files under sql folder
Jun 19, 2017
5948f90
move favicon under htdocs
Jun 19, 2017
3d28c9c
support php built-in server
Jun 22, 2017
20da45e
update rewrite rules in htaccess file and add example apache config
Jun 22, 2017
4414a0b
update readme and add install manual
Jun 22, 2017
f2c5a22
remove empty blue box on login page
Jun 22, 2017
14e12b7
add missing image from login page
Jun 22, 2017
9f0342a
show stats on page footer for all users
Jun 22, 2017
dc3a66f
fix "box" image position on component edit page
Jun 22, 2017
d6da725
cleanup gitignore
Jun 23, 2017
8a0b31b
remove blog tab
Aug 14, 2017
33ddf22
fix .htaccess file path in install manual
Aug 14, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini

# MySQL Config files
include/mysql_connect.php
include/login/config.php
/nbproject/private/
/vendor
/.idea
/nbproject/private/
4 changes: 0 additions & 4 deletions .htaccess

This file was deleted.

76 changes: 76 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Installation instructions

Installing ecDB requires following steps:
* get the code
* install dependencies
* setup mysql database
* setup web server

## Getting the code

:point_right: this installation instruction expects files to be extracted into /var/www/ecdb folder.

Download [latest ZIP file](https://github.com/petslane/ecDB/archive/master.zip) and extract to desired folder
```bash
wget https://github.com/petslane/ecDB/archive/master.zip
unzip master.zip -d ecdb
```
or do git clone
```bash
git clone https://github.com/petslane/ecDB.git
```

## Installing dependencies

:point_right: Dependencies are handled by [Composer](https://getcomposer.org/) and expects it's already installed. If not, [here](https://getcomposer.org/download/) is how to do it.

Install dependencies with Composer:
```bash
composer install
```
## Setup MySQL database

Start MySQL command-line tool and connect to db server with admin user:
```bash
mysql -u admin_user -p
```

In MySQL cli tool, create database:
```bash
mysql> CREATE DATABASE ecdb;
```

create new user:
```bash
mysql> CREATE USER 'ecdb'@'localhost' IDENTIFIED BY 'some_strong_password';
```

grant user access to `dcdb` database:
```bash
mysql> GRANT ALL PRIVILEGES ON ecdb.* TO 'ecdb'@'localhost';
```

## Setup web server

### Apache

Example apache configuration can be found in `config/apache.conf`. ecDB uses rewrite rules and `AllowOverride` must be
allowed. If you want to ecDB be accessible from base path (eg. http://domain/myecdb/), then configure `RewriteBase` to
specify base path in `htdocs/.htaccess`.

### PHP built-in server

PHP built-in server is supported. Run following command to start webserver on localhost with port 8888:
```bash
php -S localhost:8888 -t htdocs htdocs/index.php
```
If you want to start server on port 80 (or any port below 1024), then change "8888" appropriately and run this command with root privileges.

# Configurations

On first install MySQL must be configured. Got to file `config/config.php` and make appropriate changes in `$confg['db']`.

Rest of configs are optionals and should work as is.

In case Apache web server was used and ecDB was installed under subpath, then `RewriteBase` must be configured in `.htdocs/.htaccess`.

8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,12 @@ Currently there is no documentation available. Please feel free to create it!

## Installation

- Either download the latest stable release from the [download page](https://github.com/ElectricMan/ecDB/downloads). Or download this git.
- Create a MySQL database.
- Import `ecdb_databse.sql` database structure to your MySQL-database.
- Insert your MySQL data in the configuration file, `include/mysql_connect.php`.
- **You are now set to go!** The default username is `demo` and password `demo`.
[Installation instructions](INSTALL.md)

### Requirements

- Web Server.
- PHP Version 5.2.4 or above.
- PHP Version 5.5 or above.
- MySQL Version 5.0 or above.

## Contributing
Expand Down
94 changes: 0 additions & 94 deletions about.php

This file was deleted.

Loading