Giter VIP home page Giter VIP logo

expper's Introduction

Expper

Explore the Internet and Share Something Useful.

This is the source code https://www.expper.com website.

Prerequisites

  • Java 8+
  • Spring Boot 1.3.0.RELEASE
  • PostgreSQL 9.4+
  • Jhipster 2.24.0
  • Redis 3.0+
  • RabbitMQ 3.5.6+
  • ElasticSearch
  • Node.js

Installation in development

  1. Install node and bower dependencies

    npm install -g grunt-cli 
    npm install
    bower install 
    
  2. Start Postgres and other services

    # in Mac OS X
    brew install redis
    brew install rabbitmq
    brew install elasticsearch
    
    redis-server
    rabbitmq-server
    elasticsearch
    
  3. Create and modify the configuration files according to your settings

    cp src/main/resources/config/application.example.yml src/main/resources/config/application.yml 
    cp src/main/resources/config/application-dev.example.yml src/main/resources/config/application-dev.yml 
    cp src/main/resources/config/application-prod.example.yml src/main/resources/config/application-prod.yml 
    
  4. Start application in development mode

    gradle bootRun # or ./gradlew bootRun , if you haven't install gradle yet
    
    # open another terminal and run grunt
    grunt 
    

Building for production

To optimize the expper client for production, run:

./gradlew -Pprod clean bootRepackage

To ensure everything worked, run:

java -jar build/libs/*.war --spring.profiles.active=prod

Then navigate to http://localhost:9000 in your browser.

Testing

Unit tests are run by [Karma][] and written with [Jasmine][]. They're located in src/test/javascript and can be run with:

grunt test

UI end-to-end tests are powered by [Protractor][], which is built on top of WebDriverJS. They're located in src/test/javascript/e2e and can be run by starting Spring Boot in one terminal (./gradlew bootRun) and running the tests (grunt itest) in a second one.

License

Expper is licensed under GPLv3 license.

expper's People

Contributors

raysmond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

expper's Issues

elasticsearch errors in localhost

I follow the instruction,run this code in localhost but get some errors,maybe the version of elasticsearch is different from yours. could you tell me which version you are using?

errors from ./gradlew
[DEBUG] org.elasticsearch.client.transport - [Thermo] failed to connect to node [[#transport#-1][PC-20151221WLRR][inet[/127.0.0.1:9300]]], removed from nodes list
org.elasticsearch.transport.ConnectTransportException: [][inet[/127.0.0.1:9300]] connect_timeout[30s]
java.net.ConnectException: Connection refused: no further information: /127.0.0.1:9300

errors from elasticsearch terminal:

[2016-03-20 06:33:38,674][WARN ][transport.netty ] [Thunderbird] except
ion caught on transport layer [[id: 0xcc34a020, /127.0.0.1:55198 => /127.0.0.1:9
300]], closing connection
java.lang.IllegalStateException: Message not fully read (request) for requestId
[0], action [cluster/nodes/info], readerIndex [39] vs expected [57]; resetting
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceiv
ed(MessageChannelHandler.java:120)

application-dev:

data:
elasticsearch:
cluster-name: elasticsearch
cluster-nodes: 127.0.0.1:9300

To run this project,must i have a qiniuAuth Key? or just delete corresponding class? otherwise, i get exception like that

[ERROR] org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qiniuService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.qin
iu.util.Auth com.expper.service.QiniuService.qiniuAuth; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qiniuAuth' defined in class path resource [com/expper/config/QiniuConfig.class]: Bean instantiation v
ia factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.qiniu.util.Auth]: Factory method 'qiniuAuth' threw exception; nested exception is java.lang.IllegalArgumentException: empty key

Login issues

i can not login after clicking activate link from my Email in the www.expper.com,there must be some errors happening.Do you link that to the database?

can't find file

import com.expper.web.rest.mapper.ReplyMapper;
can't find ReplyMapper class in this route.

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.