Code Monkey home page Code Monkey logo

laravel-angular-kickstarter's Introduction

Requirements

  1. docker https://docs.docker.com/get-docker/
  2. docker-compose https://docs.docker.com/compose/install/

First time setup

For linux users only: for each script use sudo bash ./script/scriptname.sh

  1. Run ./scripts/generate-env.sh without sudo
  2. Edit .env file according to you. Make sure that you use empty ports.
  3. If you plan to use it for production, make sure that API_PORT matches in .env frontend/src/environments/env.ts.
  4. Install:
    1. For development Run ./scripts/install.sh
    2. For production Run ./scripts/install.sh prod

Usage

  1. To start application:
    1. For development Run ./scripts/start-development.sh
    2. For production Run ./scripts/start-production.sh
  2. To stop application Run docker-compose down
  3. To enter backend terminal Run docker-compose exec bash backend
  4. To enter frontend terminal (development only) Run docker-compose exec bash frontend_dev
  5. To reach database terminal Run docker-compose exec db mysql -u root -p and enter MYSQL_ROOT_PASSWORD

Tips for usage

  1. If you add new model, run docker-compose exec backend php artisan idea-helper:models to update it with Eloquent properties and methods
  2. After every update in production, stop frontend_prod container and run docker-compose build --no-cache frontend_prod

laravel-angular-kickstarter's People

Contributors

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