Skip to content

We build a papser scissor stone app by using flask as server system for routing and using react native as client system for user to play the game and view their result. This application contains sign-up, log-in, and log-out authentication system. The user informations are processed, encrypted, and stored in server-side mongo database. The game alog

Notifications You must be signed in to change notification settings

ttangt/PaperScissorStoneApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paper Scissor Stone App

Environment

  • Ubuntu20.04
  • Flask (Server)
  • React Native (Client)
  • MongoDB (Database)

Introduction

We build a papser scissor stone app by using flask as server system for routing and using react native as client system for user to play the game and view their result. This application contains sign-up, log-in, and log-out authentication system. The user informations are processed, encrypted, and stored in server-side mongo database. The game alogorithm is also processed in server system.

Demonstration

  • Login Page

  • Signup Page

  • Dashboard Page

  • Game Page

  • Game Result Page

Installation

Instruction

Start Systems

(Make sure router is on and both mobile device is connected to same router before getting started)

Start Mongodb

$ sudo systemctl start mongod
  • Open mongodb compass to view mongodatabse

Start Server System

$ sudo systemctl start mongod.service
$ cd ./server
$ pip install -r requirements.txt
  • Create .env in the server directry and put the local mongodb address
MONGODB_URL="Your-local-mongodb-address"
$ ./run

Start Client System

$ cd ./client/PaperScissorStoneApp/
$ npm install
  • Create .env in the server directry and put the local mongodb address
SERVER_IP="Your-local-server-ip-address"
$ npx expo start 
  • Open Expo Go in mobile and scan qrcode

References

About

We build a papser scissor stone app by using flask as server system for routing and using react native as client system for user to play the game and view their result. This application contains sign-up, log-in, and log-out authentication system. The user informations are processed, encrypted, and stored in server-side mongo database. The game alog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published