IniZio / USTFetch-backend

Backend for USTFetch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USTFetch Backend

Fire up:

  1. Copy .env.example to .env file
  2. Create /data/mongo/db folder with 755 permission
  3. Install docker
  4. Install docker-compose
  5. cd into project root directory, run docker-compose up --build, first time will take a long time, the rest will be a matter of a few seconds

Structure:

  • app/Http/Controllers/*.php: the 'C' in MVC concept of Lumen framework. ExampleController.php is the template
  • app/*.php: the 'M' in MVC concept. ExampleModel.php is the template
  • routes/web.php: handle requests
  • app/Events/*.php: Event broadcasting, will be used for the chatroom function. ExampleEvent.php is the template
  • docker-images/nodejs/server.js: express server with socket.io module for realtime chat

Docker

  • PHP: for lumen
  • nginx: host the lumen framework
  • nodejs: host chatroom with socket.io
  • mongodb: database for lumen and chatroom

API

blueprint

About

Backend for USTFetch


Languages

Language:PHP 89.9%Language:JavaScript 5.9%Language:Dockerfile 3.4%Language:Shell 0.7%