AcaSeDona is a collaborative map that has locations where donations are received, all in one place. Let's help to help!
http://www.acasedona.com.ar
- PHP 5.4+
- MySQL 5+ (or SQLite)
- Composer
- NodeJS
- Bower
- Sass
This project uses a .env
file to manage passwords and keys configuration.
You have to duplicate the .env.example
file, and rename it .env
. After this, complete with the correct information (database, backend, recaptcha, google analytics, google maps api and facebook app id).
This project uses Composer to manage php vendors. To install we have to do:
$ composer install
- FlightPHP
- Wing Commander
- Laravel Eloquent
- reCAPTCHA
- Google Maps Geocoder
- Slugify
- BanBuilder
- Simple Flash
- phpdotenv
If you want to use the table that this project uses, you can do so at the AcaSeDona/Support/database.php
file.
You have to change the variable $create_tables
to true
. The next time you visit the website (with the correct database connection information), the table will be created.
But after you created the table you have to change back the variable $create_tables
to false, because the system will try to create the already created table again.
This project uses Gulp to compile its assets (Sass + JS).
We can find it in the client
folder. To install the NodeJS packages, we have to go into client
folder and run:
$ bower install
$ sudo npm install
Then we have to globally install Gulp (if we haven't done it yet):
$ sudo npm install --global gulp
To auto generate the production files while we are working (they are at the assets
folder),
we have to be in the client
folder, and then run:
$ gulp
This will keep running, watching the files change, and then auto generating the final files.
If you want to run manually the compilation scripts, you have these two commands:
$ gulp sass
$ gulp js
There is something else you have to know: If you are going to add or remove a JS file,
you have to add/remove them from the gulpfile.js
or else the Gulp script won't work.
There are an array that have this list: js_files
. Please verify this, if you are
going to change the file structure at the client/js
folder.
- Bootstrap Sass
- Bourbon
- Neat
- Font Awesome
- jQuery
- Cycle 2
- html5shiv
- gmaps.js
- Bootstrap Timepicker
- Typeahead for Bootstrap 3
- Sharrre
- Gulp
- gulp-autoprefixer
- gulp-cache
- gulp-concat
- gulp-jshint
- gulp-minify-css
- gulp-notify
- gulp-rename
- gulp-ruby-sass
- gulp-uglify
- gulp-util
- gulp-watch
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Make your changes
- Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request