Giter Site home page Giter Site logo

caritoz / mini-crm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 709 KB

Small CRM with Laravel v8 and frontend in VueJs.

License: Creative Commons Zero v1.0 Universal

Dockerfile 1.21% Shell 1.54% PHP 59.84% Blade 20.10% Vue 17.30%
laravel-framework vuejs vue-router vuex-store php8 crm ci-cd crud

mini-crm's Introduction

About

Mini CRM, this demo project manages a CRUD between clients and transactions. It also contains Github Actions with a simple configuration for CI/CD in run-tests.yml.

Requirements

Installation

Execute this command to install the project:

$ composer update

Usage

  1. Clone the project repo and checkout to development branch
    $ git clone https://github.com/caritoz/mini-crm.git
    
    $ cd mini-crm        
  1. To start a development environment for the first time, run
    $ sudo docker-compose up -d --build
  1. Open a terminal and composer install
    ## connect to docker app bash
    $ docker-compose exec api bash
    
    ## composer may ask for GitHub credentials the first time
    $ composer install --no-plugins --no-scripts

    ## Install other dependencies and compilation
    $ npm install & npm run dev

    ## Install migrations and seeds
    $ php artisan migrate --seed

    ## create the encryption keys needed to generate secure access tokens
    $ php artisan passport:install

    ## symbolic link by Images
    $ php artisan storage:link
  

PHPUnit tests in Laravel

## you can migrate the database to sqlite db for testing
$ touch database.sqlite
$ php artisan migrate --seed --env=testing

## Run tests
$ ./vendor/bin/phpunit --testdox

Configuration

  1. Add "127.0.0.1 {{HOST}}" to your hosts file
  2. Access https://{{HOST}}/
  3. Environments API for file .dockerenv
DOCKER_PHP_SERVICE=php-fpm
DOCKER_PHP_SERVICE_PORT=9000
DOCKER_DATABASE_SERVICE=database

SERVER_NAME={{SERVER_NAME}}

```php

#set up app
APPLICATION_ID={{APPLICATION_ID}}
APP_NAME={{APP_NAME}}
APP_ENV={{APP_ENV}}
APP_KEY={{APP_KEY}}
APP_DEBUG=true
APP_URL=http://localhost
ENABLE_DEBUGGING=true
ENABLE_MEMCACHED=true

# set up server email
SMTP_HOST={{SMTP_HOST}}
SMTP_PORT={{SMTP_PORT}}
SMTP_AUTH={{SMTP_AUTH}}
SMTP_USERNAME={{SMTP_USERNAME}}
SMTP_PASSWORD={{SMTP_PASSWORD}}

#set up database
DATABASE_HOST={{DATABASE_HOST}}
DATABASE_PORT={{DATABASE_PORT}}
DATABASE_NAME={{DATABASE_NAME}}
DATABASE_USERNAME={{DATABASE_USERNAME}}
DATABASE_PASSWORD={{DATABASE_PASSWORD}}

# set up others
LOG_CHANNEL=daily

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=cookie
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Contributions

Contributions are welcome! Please create a pull request with your changes.

"Buy Me A Coffee"

License

This project is licensed under the GNU General Public License v3.0.

mini-crm's People

Contributors

caritoz avatar

Stargazers

Igor Danilov avatar

Watchers

 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.