Coder Social home page Coder Social logo

karamba-backend's Introduction

KARAMBACARS

Local development enviroment

  • Install docker
  • Install apt dependencies
sudo apt-get update && sudo apt-get install \
    libbz2-dev libcurl4-openssl-dev libmcrypt-dev \
    libssl-dev libxml2 libxml2-dev \
    libreadline-dev libxslt-dev \
    curl zip php-pear bzip2 libpq-dev
  • Add the following entry to /etc/hosts: 127.0.0.1 mysql
  • Run mysql container in current directory:
docker run --name karambacars-mysql -d \
	-p 3306:3306 \
	-v $(pwd)/config/mysql/:/etc/mysql/conf.d/ \
	-v $(pwd)/var/mysql/:/var/lib/mysql/ \
	-e MYSQL_ROOT_PASSWORD=root \
	-e MYSQL_DATABASE=karambacars \
	mysql:5.7.12
  • Install PhpBrew
    • Follow the steps on their website. (Please run phpbrew init before continue)
    • Install php version 7.0.8 with the following option: phpbrew update && phpbrew install 7.0.8 +default +dbs +opcache && phpbrew switch 7.0.8
    • Install the following extensions with phpbrew ext install
      • xdebug
  • Install composer components
    • ./composer.phar install
  • Run migrations
    • bin/console doctrine:migrations:migrate
  • start development server
    • bin/console server:run

NAME SERVER

add the following entries to /etc/hosts

  • 127.0.0.1 www.karambacars.com admin.karambacars.com api.karambacars.com dealers.karambacars.com
  • 127.0.0.1 mysql

karamba-backend's People

Contributors

khoaanh2212 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.