UOA Dessert Society's Members Mobile App.
Established in 2021.
Team Leadership
- Kinzi Ceolin (Project Manager)
- Avikash Naidu (Tech Lead)
How users can get started with the project
- Remove all versions of node from device if it exists
- Utilise Node Version Manager and install npm and node
- If your node version is above 18 or below 16, switch to node version 16.14.2
Some other versions not tested by the team may also work
- Install yarn
- Clone the repo
- Open a terminal, enter the client folder using
cd client
then runyarn install
to install dependencies - Create a file called ‘.env’ with the following content inside the client folder
BASE_URL=http://localhost:9002
*API_KEY='Ask WDCC/UADS for access' - Open a new terminal, enter the server folder using
cd server
then runyarn install
to install necessary packages - In MongoDB, Security → Database Access, click + Add New Database User
Choose ReadAndWriteAdmin in Built-in role
Fill the other information and click Add User
You will need to create a username and password - Create a file called ‘.env’ with the following content inside the server folder
(Replace UserName and Password with the actual username and password of the mongodb database user you have created in step 9)
MONGODB_URI = mongodb+srv://{UserName}:{Password}@uads-cluster.sw67y.mongodb.net/ > retryWrites=true&w=majority
PORT = 9002
NODE_ENV = development
- Run
npm install mongodb
- Run
yarn run dev
to start on default port 9002 - Return to the client terminal and run
yarn start
- Follow the expo instructions. Press
w
to start the webpack server
- Remove all versions of node from device if it exists
- Utilise Node Version Manager and install npm and node
- Install yarn and check version by
yarn --v
Installation | Yarn
If the version is not 1.22.4, runyarn set version 1.22.4
yarn set version
Some other earlier versions not tested by the team may also work - Clone the repo
- Open terminal, enter the client folder using
cd client
, and runyarn
oryarn install
to install dependencies (This step will take a while) - Go inside client folder and create a file called ‘.env’ with the following content
BASE_URL=http://localhost:9002
*API_KEY='Ask WDCC/UADS for access' - Open terminal under the server folder using
cd server
nd runyarn
oryarn install
to install dependencies (This step will take a while) - In MongoDB, Security → Database Access, click + Add New Database User
Choose ReadAndWriteAdmin in Built-in role
Fill the other information and click Add User
You will need to create a username and password - Go inside server folder and create a file called ‘.env’ with the following content
(Replace UserName and Password with the actual username and password of the mongodb database user you have created in step 8)
MONGODB_URI = mongodb+srv://{UserName}:{Password}@uads-cluster.sw67y.mongodb.net/ retryWrites=true&w=majority
PORT = 9002
NODE_ENV = development - Run
npm install mongodb
- Run
yarn run dev
to start on default port 9002 - Go back to client folder terminal and run
yarn start
- Follow expo instructions. Press
w
to open the web page
Above or equal to v12 and below or equal to v16, including 16.14.2
, 16.16.0
, 16.20.0
- QR Code generated in terminal in client does not work
- Iphone mode does not work
- If some steps were redone and problems occurred running ‘yarn run dev’ or ‘yarn start’, try delete the mode_modules folder in both client and server, run ‘yarn cache clean’, and install all dependencies again
- If cleaning cache does not work, delete the repo and clone it again