Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melindrea/security-application
Source code for web application security course project
https://github.com/melindrea/security-application
Last synced: 22 days ago
JSON representation
Source code for web application security course project
- Host: GitHub
- URL: https://github.com/melindrea/security-application
- Owner: Melindrea
- Created: 2013-10-20T06:14:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-31T06:23:10.000Z (almost 11 years ago)
- Last Synced: 2024-10-26T01:33:56.133Z (2 months ago)
- Language: PHP
- Size: 2.39 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
esecurity application
=============This is a project to showcase implementation of security measures in web applications
## Installation
This project is built in Laravel, which is a “PHP framework for artisans”, per their homepage http://laravel.com/ It requires a MySQL database and PHP 5.4+, with the PHP Mcrypt and XSL extensions installed. To run, it requires that the components have been installed, using [Composer](https://getcomposer.org/). Run `php composer.phar install` in the root of the project, as the `composer.phar`-file is include in the repository. Occasionally there are issues with the download rate from Github. If that is the case, wait a bit until you run it again. If you're using Vagrant, log into the machine using `vagrant ssh` and run `php composer.phar install` in the directory `/vagrant`. At that point it may prompt you for your Github username/password to be able to download more things.In development, it also requires the following components to be installed on the system:
* NPM (for Bower and Grunt)
* Ruby (for Sass with Compass)The alternate way of dealing with the requirements to run and install an appropriate environment is to use Vagrant and the included Vagrantfile (building a box based on VirtualBox, using Ubuntu 12.04 Precise 32bits). This installation guide assumes that you are not using the included Vagrantfile, and that you are not interested in developing the frontend of the site, but rather focus on the middle- and backend with `PHP` and `MySQL`.
### Database
The database should be named `secapp`, and the system expects a user by the name of `root` with the password `password`. This is obviously a development setting, as in production one would use a more limited user with a far more secure password.Laravel itself deals with the nitty-gritty of versioning-controlling the tables, so in the root folder of the project, in the terminal, run first `php laravel migrate` and then `php laravel db:seed`. The first command creates the tables `users`, `migrations`, `sessions` and `messages`, where `migrations` is a system table dealing with above-mentioned version control and `sessions` hold the current active sessions. The second command creates a few rows in the tables, to give a starting set of data.
### Server
To test most of the code, you can use the command `php laravel serve` in the root folder of the project, in the terminal, but the basic PHP server **does not** deal with SSL at all. In `setup` you can find the file `security-application.dev`, which is the Apache2 config file used by Vagrant, which can serve as a template.* Ensure you have created the folder `app/storage` and that it is writable by the server.
* Ensure you have created the folder `app/storage/meta` and that it is writable by the server.
* Ensure you have created the folder `app/storage/logs` and that it is writable by the server.
* Ensure you have created the folder `app/storage/views` and that it is writable by the server.
* `app/storage` and subfolders should have permissions `777`, under *nix you can run `chmod -Rvc 77 app/storage` in the root folder of this project, IE **not on the vagrant server**.### Troubleshooting
If there are issues running the project, the most common one has to to do with permissions. The error messages are left to run in development, but are turned off by default in a production environment.### Vagrant-specific details
* Domain: security-application.dev
* IP: 192.168.33.10## Author(s)
* Marie Hogebrandt (http://mariehogebrandt.se)