GithubHelp home page GithubHelp logo

rest_fundaday's Introduction

REST Fund a Day

Built on Laravel 5.0

Download and install Laravel, as well as Laravel Homestead to get your local environment up and running.

Make sure to follow all of the installation and configuration instructions, including setting up your own .env file. You can copy .env.example to get a good start.

Run npm install to install the needed packages for Laravel Elixir (gulp)

Create a local DB with Sequel Pro (Mac)

If you're using the default .env file - your database creds are:

Name: rest_fundaday-LOCAL (or equivalent)

Host: 127.0.0.1

Username: homestead

Password: secret

Port: 33060

Leave database field open for now - then connect and click Add Database... in the dropdown of the top right - name your db: restfad

Now that you've created your database, you can enter restfad on the credentials screen and save it as a favorite.

Adding a local development URL: restfundaday.app

Open the Homestead.yaml file - it's probably here: ~/Homestead/Homestead.yaml

Add the following under sites

sites:
    - map: restfundaday.app
      to: /home/vagrant/Homestead/rest_fundaday/public

Next - carefully edit your /etc/hosts file and add this line

192.168.10.10 restfundaday.app

Make sure to save. Now back out to your ~/Homestead folder and run vagrant provision

Now you can visit (http://restfundaday.app) in your browser to see the app running.

Daily Usage

cd into your Homestead folder - ideallly: cd ~/Homestead

run: vagrant up

This will get your virtual machine running.

Once it's running SSH into it using: vagrant ssh

After you've SSH'd in, to get the latest db migrations, run: php artisan migrate

Then you can run: composer dumpautoload

To get the latest autoloaded classes.

--

Open a new Terminal tab and cd into your rest_fundaday directory. Then run: gulp watch

to have Elixir (gulp) watch for changes to your asset files

rest_fundaday's People

Contributors

jeremypbeasley avatar

Watchers

James Cloos avatar Eric Smith avatar  avatar

rest_fundaday's Issues

Getting Laravel up on production

Hey @jeremypbeasley got gulp working tonight with the original stylus and js files. Had to change the .css extensions of a few files and change the image / font paths around - but everything appears to be working. I ended up using Laravel Elixir - which is the framework's fast and easy way to get gulp going. Here's more on that: https://laravel.com/docs/5.2/elixir

I'm going to wait until later this week to attempt to put this up on the server as I know it will require some server config. At that point, I'll push everything to the production branch with your thumbs up.

I've left some instructions in the readme for getting your DB setup as well as the local URL. Hopefully these get you closer to getting Laravel working - we can chat soon again to get it all squared away.

SSH access to domain

Hey there,

Added an SSH user tonight but I found out any users I add don't have permissions to access the actual domain files / Laravel files. Am I ok to use the main SSH login to setup the site? (I'll reset the main SSH password via mt).

Also I'm a bit worried about the PHP version. It looks like through (mt) you can get the php version up to 5.5 - If we do that we'll have to move all the files back from Laravel 5.2 to 5.0 - shouldn't be the biggest deal in the world but I thought I'd give you the heads up.

If you give me the green light - I can start making these changes

get ssl certificate for subdomain

looks like up on mediatemple the SSL only works on iwantrest.com - can you get authorization to buy an HTTPS add-on for the subdomain?

Weird issue with public folder

Seems like when the deployment goes up - it wipes out a lot of files in the public folder.

Can we look at your deployhq stuff to make sure it's working as expected?

datepicker - remove "today" indication

right now, it's the same style as the selected date and with the input field hidden, it's misleading. A user could easily be lead to believe today is chosen.

Also test this case if "today" is a funded day.

build breaks when local checkout branch: laravel

not sure what's up here but i generally follow these steps:

  1. on master[laravel for us], git checkout -b mynewfeaturebranchname
  2. do stuff, push, open PR
  3. if can merge automatically, do it. if not, wait on you.
  4. locally checkout master[laravel for us], repeat #1 for next set of work.

When I do this now it breaks. For now I'm just making a new branch off morestuff that's stable locally and working on desktop front end.

Attached is what i see at restfundaday.app when i checkout laravel locally.
screenshot-restfundaday app 2016-07-17 23-30-04

Form - Needs loading feedback

when a user donates it fires off an ajax call and loads for a little bit - it'd be good to have the form or button reflect this back the user.

right now I add a class of form-is-loading while the ajax is firing (with a very basic change to the button color and background). let me know if the JS needs to do anything here.

display photos of ERC

we don't have photos. I need to shoot these and build a simple ui to swipe through each of them.

Tracking - Track events in GA

current list:

  • taps on "learn more about the ERC"
  • taps on "see the breakdown"
  • taps on date-picker per user
  • #'s a different dates were chosen
  • taps on change month arrows.
  • failed client side validation
  • taps to submit
  • taps to "understand the problem..."
  • taps on "more about what we do."
  • taps no "iwantrest.com" link at bottom
  • taps on "i dont want my name..." checkbox

add time sensitive copy

we want this page to be able to persist through the end of the calendar year so getting a little smarter with our language will help page not feel dead.

if before august

"Next month, we open our Emergency Care Center and we need your help."

if during august.

"This month, we opened our Emergency Care Center and we need your help.""

if after august but before september.

"Last month, we opened our Emergency Care Center and we need your help.""

if after september.

"This August, we opened our Emergency Care Center and we need your help.

Layout - Photos of the ERC

Once we get photos of the ERC, we'll need to lay them out in a way that makes sense with the text and consistent with the designs shared with REST leadership.

datepicker - message on select

When a user selects a date, we want to gracefully expose a small test string below the calendar that reads "you've chosen XXXX, this date is currently un-funded."

Downgrading to Laravel 5.0

Welp - I took the big leap to downgrade us from 5.2 to 5.0.

For the most part it looks like everything jives - we might have to rebuild your environment however.

The first steps would be to git pull the latest from laravel branch. Then go into your ~/Homestead directory and type vagrant ssh

then cd Homestead/rest_fundaday

Then composer install

This should install all the new Laravel 5.0 files for you.

I can chat tmrw with you to make sure everything works okay.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.