Skip to content

Sample real-time food ordering system with eggjs and socket.io

Notifications You must be signed in to change notification settings

athrunsun/realtime-food-ordering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

realtime-food-ordering

This is a sample nodejs + reactjs web app to learn egg.js and socket.io.

Tech stack

Backend

Frontend

Get started

  • Clone this repo.
  • cd db
  • ./db_up.sh, to start mysql and redis in docker.
  • cd ../backend
  • yarn install
  • yarn dev, to start backend server.
  • cd ../frontend
  • yarn install
  • yarn watch, compile and watch file changes.
  • yarn server, start development server to serve compiled files (I didn't use webpack-dev-server so we need 2 steps here to start dev server).
  • Open browser at http://localhost:3000, one browser tab corresponds to a "user".

Screenshots

User 1: user_1

User 2: user_2

TODO

  • Create config files (for webpack and egg.js) to create a production build.
  • Build into docker containers, and start with a docker-compose command.

About

Sample real-time food ordering system with eggjs and socket.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages