Giter Club home page Giter Club logo

plana's Introduction

Installation

Backend

Install composer https://getcomposer.org/download/

Install dependencies with composer

php composer.phar update

Frontend

Install dependencies

cd frontend
npm install

Run the application

It is possible to run the application it two modes: development and production.

Run in development mode

Execute the command

make

It will start development environment in docker containers.

Backend will be available on localhost

Frontend will be available on localhost:8080

It is possible to run the application separately

To run backend execute

cd backend
./vendor/bin/sail up

To run frontend execute

cd frontend
npm run dev

Run in production mode

To run in production mode it needs to run frontend only.

make run_frontend

or

cd frontend
npm run serve

Frontend will take data from https://api.v2.emissions-api.org/ui/

Run tests

To run frontend test execute

make run_frontend_tests

or directly in frontend directory

cd frontend
npm run test

Frontend

Routing and layouts

There is layout system as top layer above vue router. New layouts could be added into frontend/src/layouts directory. Each route could specify the used layout inside meta.layout property For example:

[
    path: '/',
    name: 'Home',
    component: () => import('@/views/Index.vue'),
    meta: {
      layout: 'AppLayoutMain',
    },
]

The router will look for a layout with defined name or use default layout.

Caching

All request from the server are caching in the indexedDB

To clear cache remove plana-db database in devtools/Application/indexedDB

plana's People

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.