GithubHelp home page GithubHelp logo

logbook's Introduction

Logbook

Logbook ist ein Online Fahrtenbuch. Ein Projekt zum Lernen von React.js und hybrider Appentwicklung.

Installation

git clone ...
copy .env.example to .env and setup the database conenction
composer install
npm install
./artisan migrate:install
./artisan passport:install
copy the personal access client secret and put it into .env

logbook's People

Contributors

mahaupt avatar dependabot[bot] avatar

Watchers

 avatar

logbook's Issues

Adding ASSET_URL for use with HTTPS

We need to add ASSET_URL="${APP_URL}" into .env.docker to use it with HTTPS in Docker behind Traefik.

If we don't do this, we get the attached error.
https://abload.de/img/logbook4njfc.png

Additionally I've added my docker-compose.yml :-)

version: "3"
services:
  #Nginx Service
  webserver:
    image: nginx:alpine
    container_name: logbook-nginx
    restart: unless-stopped
    expose:
      - "80"
    volumes:
      - docroot:/var/www
      - ./docker-compose/nginx:/etc/nginx/conf.d
    networks:
      - logbooknetwork
      - web
    labels:
      - "traefik.docker.network=web"
      - "traefik.enable=true"
      - "traefik.frontend.rule=Host:logbook.*****.net"
      - "traefik.port=80"
      
#  mysql:
#    image: mysql:5.7
#    container_name: mysql
#    restart: unless-stopped
#    volumes:
#      - dbdata:/var/lib/mysql
#    environment:
#      MYSQL_DATABASE: logbook
#      MYSQL_ROOT_PASSWORD: logbook
#      MYSQL_PASSWORD: logbook
#      MYSQL_USER: logbook
#      SERVICE_TAGS: dev
#      SERVICE_NAME: mysql
#    networks:
#      - logbooknetwork
      
  app:
    build:
      context: ./
      dockerfile: Dockerfile
    image: cbacon93/logbook:1.0
    container_name: logbook-app
    restart: unless-stopped
    environment:
      SERVICE_NAME: logbook
      SERVICE_TAGS: dev
    working_dir: /var/www
    volumes:
      - docroot:/var/www
      #- /opt/docker/71-logbook/custom/Login.js:/var/www/resources/js/components/Login.js
      #- /opt/docker/71-logbook/custom/app.js:/var/www/public/js/app.js
    networks:
      - logbooknetwork
      
      
#Docker Networks
networks:
  logbooknetwork:
    #driver: bridge
  web:
    external: true

#connected volumes
volumes:
  docroot:
    driver: local

.env.docker

APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=https://logbook.******.net
ASSET_URL="${APP_URL}"

LOG_CHANNEL=stack

DB_CONNECTION=sqlite
DB_DATABASE=/var/www/storage/database.sqlite
DB_FOREIGN_KEYS=true
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=logbook
#DB_USERNAME=logbook
#DB_PASSWORD=logbook

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

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

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}"

PASSPORT_PERSONAL_ACCESS_CLIENT_ID=1
PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=

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.