Thanks to visit codestin.com
Credit goes to github.com

Skip to content

saschalion/chemist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

*** Create project

mkdir chemist
mkdir lib
mkdir vendor
cd lib/vendor
tar zxpf symfony-1.4.6.tgz
mv symfony-1.4.6 symfony
rm symfony-1.4.6 tgz

php lib/vendor/symfony/data/bin/symfony generate:project chemist

chmod 777 cache/ log/

*** Setting Apache

*** /etc/apache2/sites-available/<filename>

*** add following:
NameVirtualHost 127.0.0.1:80
<VirtualHost *:80>
    ServerName chemist.local
    ServerName chemist.local
  DocumentRoot "/home/<username>/<project_path>/chemist/web"
  DirectoryIndex index.php
  <Directory "/home/<username>/<project_path>/chemist/web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf /home/<username>/<project_path>/chemist/lib/vendor/symfony/data/web/sf/
  <Directory "/home/<username>/<project_path>/chemist/lib/vendor/symfony/data/web/sf/">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

*** /etc/hosts:
*** add following:

127.0.0.13 chemist.local

*** then in console:

sudo invoke-rc.d apache2 restart 

Create database "chemist"

*** change file /<your_project>/config/database.yml/

all:
  doctrine:
    class: sfDoctrineDatabase
    param:
      dsn:      mysql:host=localhost;dbname=chemist
      username: <username_mysql>
      password: <password_mysql>

options:
    collate: utf8_general_ci
    charset: utf8

*** Create tables in database
*** change file /<your_project>/config/doctrine/schema.yml

Products:
  columns:
    type:         { type: string(255) }
    company:      { type: string(255), notnull: true }
    category:      { type: string(255), notnull: true }
    logo:         { type: string(255) }
    url:          { type: string(255) }
    description:  { type: string(4000)}
    among:  { type: string(6)}
    token:        { type: string(255), unique: true }

*** in console from <your_project> folder:

./symfony doctrine:build --all

*** Create backend

./symfony generate:app backend

*** Create module for backend named "Products"

./symfony doctrine:generate-admin backend Products --module=products

*** change file /<your_project>/web/backend_dev.php
*** and following need to remowe

// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it or make something more sophisticated.
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
{
  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}

*** go to in the web browser

http://chemist.local/backend_dev.php/products

*** Congratulations! You have successfully created your symfony project.




****** Git *******

git clone [email protected]:saschalion/chemist.git

sudo chmod 777 -R *

*** After change files need to do following:

git add *

git commit -m "<any_message>"

** And to send your commit go to repository:

git push    

** If you want to get files from repository:

git pull

*** Необходимые разделы:

table ЗАЯВКИ 
    количество, 
    кратность (0,000), 
    ЕДИНИЦА ИЗМЕРЕНИЯ table: упаковка и т.д., 
    цена, 
    сумма, 
    чекбокс - остро необходим

table РЕЕСТР 
    артикул, 
    коммерческое наименование (анальгин), 
    хим. наим., 
    международное наим., 
    ФОРМА ВЫПУСКА (table: таблетки, р-р д/ин 1мл 50%), 
    СТРАНА (table), 
    ГРУППА (table: медикаменты), 
    наличие
    ФАРМ. ГРУППА (table: пиразолоны), 
    описание

    table ХАКАКТЕРИСТИКИ ФОРМЫ ВЫПУСКА
        активность (0), 
        концентрат (50,%), 
        количество (10,амп - список), 
        дозировка (0), 
        вес (0), 
        объем (1, мл)

table НАКЛАДНЫЕ
    реквизиты:
        поставщик
        получатель
        отв. лицо
        отв. лицо орг-ции
            доверенность №
            дата
        № договора
            дата договора
            № лицензии
            дата лицензии
        примечание    

http://oldforum.symfony-project.org/index.php/m/91074/

About

chemist diploma project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published