Giter VIP home page Giter VIP logo

kellot's Introduction

Проект табеля учета рабочего времени по формам Т-12 и Т-13, разработан в целях изучения технологий NodeJS/Meteor. Проект закрыт.

=== Meteor ===

Каталоги:
- Код в директории ‘/server’ исполняется только на сервере
- Код в директории ‘/client’ исполняется только на клиенте
- Все остальные файлы исполняются и на клиенте, и на сервере
- Файлы в директории ‘/lib’ загружаются самыми первыми
- Все файлы с именем ‘main.*’ загружаются самыми последними
- Статичные файлы (картинки, шрифты и т.п.) - в директории /public

=== Material Design ===
Обновление:
0) Обновляем бутстрап до нужной версии
1) Вручную качаем архив с https://github.com/FezVrasta/bootstrap-material-design
2) Копируем всё из папки dist к нам в проект в public, туда же ложим каталог less
3) Смотрим как включено всё в head на странице http://fezvrasta.github.io/bootstrap-material-design/#checkbox и делаем так же
4) Меняем цвет

Не используем бовер и пакет метеора потому что они слишком глючат. Обновлено 20.04.15

Меняем цвет приложения:
0) npm install -g less, npm install -g clean-css
1) выбираем http://materializecss.com/color.html
2) cd public/css
3) правим custom.less
4) lessc custom.less > material-custom.css
5) cleancss -o material-custom.min.css material-custom.css

=== Настройка сервера ===

Установка и деплой через mup: https://github.com/arunoda/meteor-up#installation

Сервер:
1) sudo adduser admin  sudo
2) sudo nano /etc/sudoers.d/admin

# replace this line
admin   ALL=(ALL)       ALL

# by this line
admin   ALL=(ALL)      NOPASSWD:ALL

3) sudo service sudo restart
4) У себя на клиенте: mup setup mup deploy

nginx на сервере:

server {
    listen      128.199.60.8:80;
    server_name p.kellot.ru www.p.kellot.ru;
    error_log  /var/log/apache2/domains/p.kellot.ru.error.log error;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $remote_addr;
    }

    location ~ /\.ht    {return 404;}
    location ~ /\.svn/  {return 404;}
    location ~ /\.git/  {return 404;}
    location ~ /\.hg/   {return 404;}
    location ~ /\.bzr/  {return 404;}

    include /home/admin/conf/web/nginx.p.kellot.ru.conf*;
}

Локально настраиваем ДНС запись p.kellot.ru, иначе сервисы авторизации будут ругаться.

vagrant: 
1) Install vagrant 
2) git clone [email protected]:kafeg/kellot.git
3) vagrant up 
4) cd /home/vagrant/ && meteor create kellot 
5) echo 'sudo mount --bind /home/vagrant/kellot/.meteor/local/db /vagrant/.meteor/local/db' >> /home/vagrant/.bashrc
6) sudo chmod 777 -R /vagrant/
7) vagrant reload
8) Add Start-Vagrant to autostart via regedit

RUN:
ROOT_URL=http://p.kellot.ru:3000 meteor --settings mup/settings.json

kellot's People

Contributors

kafeg avatar valignatev avatar

Watchers

 avatar  avatar

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.