Giter VIP home page Giter VIP logo

elog's Introduction

Elogbooks Test Backend Api

Requirements

  1. git (https://git-scm.com/downloads)
  2. composer (https://getcomposer.org/download/)
  3. php with php-xml module (sudo apt-get install php-xml [ubuntu 16]) (https://symfony.com/doc/current/reference/requirements.html)
  4. mysql

Installation

  1. Get composer https://getcomposer.org/download/
  2. Copy app/parameters.yml.dist to app/parameters.yml
  3. Run 'composer install' in project root folder
  4. Create database, load fixtures
    • php bin/console doctrine:database:create
    • php bin/console doctrine:schema:update --force
    • php bin/console doctrine:fixtures:load
  5. Run 'php bin/console server:run localhost:8001'

Quick code guide

SF2 standard pattern so controllers are located in AppBundle/Controller, Entities in AppBundle/Entity, all forms to handle parameters and data should be located in AppBundle/Form folder. All custom db queries including native queries should go to Repository objects located in AppBundle/Repository

Usefull links

  1. http://jmsyst.com/libs/serializer <- JMS is used for object rest serialization.
  2. http://symfony.com/doc/current/validation.html <- sf2 validation constraints doc, should be used on DTO and entities.
  3. http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/data-retrieval-and-manipulation.html <- in case of native query execution

Elogbooks Test Frontend

Requirements

  1. git (https://git-scm.com/downloads)
  2. node (https://nodejs.org/en/download/package-manager/)

Installation

  1. Run:
    • npm install (that should install bower_components if not run 'bower install')
    • npm start

Quick code guide

To register new files add them on bottom of app/index.html

App structure

  • app
    • modules
      • job (here goes all job related code)
        • create (folder per functionality containing [controller, template file])
        • list
        • view
        • routes.js (contains routes for job section)
      • quote (here goes all quote related code)
        • same as ^

elog's People

Contributors

ifarzana avatar

Watchers

James Cloos 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.