- First, go to User Preferences to change your dietary restrictions. Go back to the home page after clicking save preferences.
- One person from your group will be the room owner. From the home page, click on Create Room. You will be asked to input a meeting location and your username. This can be anything you like.
- You will be moved into a room lobby. Take note of your room code at the top (without the '#' symbol). Send this to your friends so they can join your room!
- The rest of the group will click on Join Room at the home page. You will be asked to put in the room code and a username.
- The room owner clicks on Start Room once everybody is in.
- Follow the instructions and click on the heart if you like the food, and the cross if you don't!
- View the results and Suibian eat!
To update the application code, you must be a contributor of this repository. Create a new branch and submit a pull request for the master branch. Do look at the issues if you want something to work on, or open your own!
Please make sure your code works before submitting a pull request. You should test your code on a local server localhost:3000 to make sure everything is functioning correctly first.
- Clone this repository into your local machine.
- Make sure you have yarn installed.
- Open a terminal instance and
cd
to the root directory of your cloned repository. In the root directory, typeyarn install
. This is a mono-repo format where the common modules will be installed in the root folder directory and the more specific modules are installed in the respective packages of client and server.
After the node modules is installed, run yarn dev
in both suibian-server and suibian-app to get it working. This runs both the server and client in development mode.
Open http://localhost:3000 to view it in the browser. The app is being served via a http proxy to the express server which serves the react app.
If you would like a more specific runtime, there are several other commands to run either the client or server in standalone mode.
Runs only the client in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will hot reload if you make edits and save.
You will also see any linting errors in the console.
Runs the server using ts-node.
Runs the server using nodemon, enabling hot reloading.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Compiles the typescript files and launches the express server on the port specified (default is 4000).
Cleans the outDir of the typescript compile, removing old typescript files.