Giter Club home page Giter Club logo

elastic-search-example's Introduction

Soshace.com

Особенности:

  • Отрисовка шаблонов происходит как на клиенте, так и на сервере. (дублирует)
    • Отрисовка шаблона на сервере проиходит только при первой отдаче.
    • Используется общий каталог с шаблонами app/views
  • Роутинг проиходит как на клиенте так и на сервере (дублирует)
    • При индексировании страниц поисковым пауком должен отрабатывать серверный роутинг
    • При неполной загрузки скриптов должен отрабатывать серверный роутинг
    • В браузерах без поддержки History API должен отрабатывать сервеный роутинг
  • Собранная статика хранится в папке dist
    • Статика на клиент отдается по урлу /static/ nginx'ом
  • API отдает сообщения на английском языке, за исключением данных из базы
    • Отрендеренные шаблоны с сервера передаются с переводом, т.к. хелперы перевода встроены в шаблон
    • Перевод ответов API осуществляется на клиенте, т.к. на клиенте мы в любом месте (модель, вид, вспомогательные модули) можем легко использовать методы перевода в отличии от серера, где нужно пробрасывать объект request

After vagrant up go to http://10.0.33.34:8080

Network for professionals Soshace

elastic-search-example's People

Contributors

brnikita avatar stepanzharychev 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

elastic-search-example's Issues

Mysql connection

Hi,
I have trying to connect mysql server instead of postgres Database,getting below error,

message:"Client does not support authentication protocol requested by server; consider upgrading MySQL client"
name:"SequelizeConnectionError"

This is my configured database file,i just mentioned mysql database username and password,

database.js
module.exports = {
database: {
connectionString: 'mysql://localhost:3306',
dbName: 'chocolateteddiesdb',

    options: {
        dialect: 'mysql',
        username   : 'root',
        password : 'password',
        pool: {
            max: 5,
            idle: 30000,
            acquire: 60000,
        }
    }
},
elasticSearch: {
    address: 'localhost:9200',
    log: 'info'
}

};

please help me to resolve this...

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.