Giter Site home page Giter Site logo

yii2-oauth2-rest-docker's Introduction

yii2-oauth2-rest-docker

Repository consists of two parts:

Quick run demo of Yii2 Rest Template with OAuth2 server

  1. Make sure that you have installed Docker Compose, if not - go to https://docs.docker.com/compose/install/
  2. Clone this repo.
  3. Go to cd <directory with cloned repo>/api/
  4. Run command docker-compose up and wait message in the logs stream code_1 | ==== API READY FOR REQUESTS ====
  5. Add to /etc/hosts following record 127.0.0.1 api.loc (if you're using Boot2docker you need to replace ip with it one. boot2docker ip will tell you its address)

You may get flaxibility to develop (change code in real time, saving db state between starts, replace diffent version php-fpm, apache, nginx and dbms) by reading documentation about (Docker)[https://docs.docker.com/]

ATTENTION: don't use it solution AS IS in production. It was built for quick demonstate work of Yii2 Rest Template with OAuth2 server

Docker image yii2-oauth2-rest-code

This image has already configured ikaras/yii2-oauth2-rest-template code with all needed php extensions, db connection and migration. On each running will be execute update template's and vendor's code, applying migrations

yii2-oauth2-rest-docker's People

Contributors

ikaras avatar

Stargazers

Oleg Fedorov avatar 张志诚 avatar Waheed Al Khateeb avatar

Watchers

 avatar

yii2-oauth2-rest-docker's Issues

why use sleep?

in /yii2-oauth2-rest-code/Dockerfile, line 11 && 15, why use sleep?

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.