Skip to content

Latest commit

 

History

History
78 lines (40 loc) · 1.34 KB

README.md

File metadata and controls

78 lines (40 loc) · 1.34 KB

egofunding

Crowfunding WebSite for Ego Oyiri Project

Crowd Funding Template Project

Follow these steps to get started:

  1. Git-clone this repository.

     $ git clone https://github.com/egoOyiri/egofunding.git egofunding 
    
  2. Change directory into your clone:

     $ cd  egofunding
    
  3. Launch SBT:

     $ sbt
    
  4. Compile everything and run all tests:

     > test
    
  5. Start the application:

     > re-start
    
  6. Browse to http://localhost:8080/

  7. Stop the application:

     > re-stop
    
  8. Learn more at http://akka.io and http://spray.io/

  9. Start hacking on src/main/scala/org/egooyiri/EOService.scala

Eclipse Integration

  1. Launch SBT with eclipse argument:

      $ sbt eclipse
    
  2. Test in Eclipse:

      In Eclipse run EOServiceSpec as JUnit or Scala Tests
    

IDEA Integration

  1. Launch SBT with IDEA argument:

      $ sbt gen-idea
    
  2. Test in IDEA:

      In IDEA simply run EOServiceSpec 
    

Deployment

Follow these steps to deploy:

  1. Generate the Über-jar file:

      $ sbt assembly
    
  2. run:

      $  java -jar target/scala-2.10/egofunding-assembly-0.1.jar
    
  3. test:

      * in your favorite browser paste the URL http://localhost:8080
      
      * stop testing http://localhost:8080/stop?method=post
    
      $ curl -v http://localhost:8080/stop?method=post