Giter VIP home page Giter VIP logo

navigo's Introduction

Demo navigo build with Symfony 6.2 + PHP 8.1.0 with Docker

Requirements and configure

this docker-compose is designed for a Linux operating system, provide adaptations for a Mac or Windows environment.

  • Linux (Ubuntu 20.04 or other)
  • docker
  • docker-compose
  • git
  • yarn
  • node

Add group for your user to avoid sudo: https://docs.docker.com/engine/install/linux-postinstall

Run the docker-compose to build your local environment

  docker-compose build
  docker-compose up -d

Install and launch

Copy .env.dist to .env and modify the .env file like this example to adapt your uses:

  DATABASE_URL="mysql://root:root@mysql:3306/navigo?serverVersion=mariadb-10.3.29&charset=utf8mb4"
  1. Log into the PHP container docker-compose exec php bash
  2. Install dependencies : cd api && composer install
  3. Create database: php bin/console d:d:c
  4. Play migrations : php bin/console d:m:m
  5. Play fixtures : php bin/console d:f:l --no-interaction
  6. Start the server : symfony serve -d

Your application will be at http://127.0.0.1:8000

  1. Exit PHP container and go to frontend dir
  2. Start front with : yarn startco (like yarn start, but using craco)

Ready to use with

This docker-compose provides you :

  • PHP-8.1.0-cli (Debian)
    • Composer
    • Symfony CLI
    • and some other php extentions
    • nodejs, npm, yarn
  • mariadb/server:10.3
  • maildev (mailcatcher)

navigo's People

Contributors

bang-dai 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.