Git Product home page Git Product logo

api's Introduction

API

Central API

Requirement

  1. PHP >= 7.2 with native redis extension installed.
  2. Redis
  3. MySQL 5.7 with utf8mb4 character sets

Development with docker

  1. Installation
    • Download Docker CE: https://docs.docker.com/install/
    • Clone this repository and change working directory into this project
    • For windows user, you should get use bash instead of using cmd, give a try with cmder or git bash
    • Setup environment variables:
      cp .env.example .env
      
    • Start docker:
      ./dcp up
      
    • Composer install:
      ./dcp composer install
      
    • Migration:
      ./dcp a migrate --seed
      
    • API installation:
      ./dcp a api:install
      
    • Your project will be available at localhost:80, you can easily to change it through DOCKER_APP_PORT environment variable.
  2. Control your development environment with docker
    • MySQL run in docker container with port 3306, however, to prevent port conflict with host machine we using port 43306, you can easily to change it through DOCKER_MYSQL_PORT environment variable:
    • Redis run in docker container with port 6379, on host machine is 7379 (DOCKER_REDIS_PORT)

Default login information:

Email: [email protected]
Password: password

Enjoy!

api's People

Contributors

ytran-prime avatar nguyenytran avatar

Watchers

James Cloos 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.