libre-informatique/lisem-project

LISem is an ERP specialized for seeds producers and craftsmen.

0.6.4 2017-11-03 17:07 UTC

This package is not auto-updated.

Last update: 2024-10-27 05:20:15 UTC


README

LISem is an ERP specialized for seeds producers and craftsmen. It uses many libraries from :

THIS PROJECT IS STILL UNUSABLE, IT'S A WORK IN PROGRESS

Installation

Download project

With SSH (if you have a GitHub account) :

$ git clone git@github.com:libre-informatique/LISemSymfonyProject.git

... or with HTTPS:

$ git clone https://github.com/libre-informatique/LISemSymfonyProject

Create and configure the database

Create a database. For example, if you are using PostgreSQL :

CREATE USER lisem_user WITH PASSWORD 'this-is-my-lisem-password';
CREATE DATABASE lisem;
GRANT ALL PRIVILEGES ON DATABASE lisem TO lisem_user;
\connect lisem;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

Configure the LiSem application according to your database settings:

# app/config/parameters.yml
parameters:
    database_host: 127.0.0.1
    database_port: 5432
    database_name: lisem
    database_user: lisem_user
    database_password: this-is-my-lisem-password

Create tables:

$ bin/console doctrine:schema:create

Install dependencies (vendors)

Make sure you have the latest version of composer installed, then :

$ cd LISemSymfonyProject
$ composer install

It will install part of the assets. See below to see how to install the remaining assets (Sylius assets)

Setup application

$ bin/console lisem:install:setup --with-samples

Deploy Sylius assets

You need node.js installed for this section.

$ bin/console sylius:theme:assets:install
$ npm install
$ npm run gulp

Tadaaa !

Launch your PHP server :

$ bin/console server:start

In your browser you should now be able to check these pages :

For the admin pages, the login / password is : lisem@lisem.eu / lisem

If you encounter cache and/or log directory problems

Add cache_dir and logs_dir parameters to your parameter.yml with the absolute path to the cache and log directories. For example :

# app/config/parameters.yml
parameters:
    cache_dir: /tmp
    logs_dir: /tmp