After installing Node on the local machine as described for your OS, install Expo CLI with the following command:
npm install -g expo-cli
After that, the below commands should be executable.
- Grab the
.env
file for the DB IP and password for the API user and place in root of project.- This file should never, never be committed to the repo.
- Launch the API by running
startExpressServer.sh
.- Provide any argument, e.g.
./startExpressServer.sh 1
, to install necessary packages on first run.- This is Linux/Mac only. You can just run
cd client && npm install && node app
on Windows.
- This is Linux/Mac only. You can just run
- Provide any argument, e.g.
- Launch the client frontend development server by running
startReactServer.sh
, ideally in a separate terminal window.- Provide any argument, e.g.
./startReactServer.sh 1
, to install necessary packages on first run.- This is Linux/Mac only. You can just run
cd client && npm install && npm start
on Windows.
- This is Linux/Mac only. You can just run
- Provide any argument, e.g.
- Let Expo take you to the website to begin developing.
A valid .env
file for this app would look like the following:
PORT=5000
DB_HOST=[IP to MySQL Host]
DB_USER=apiuser
DB_PASSWORD=[API user's password]
SESSIONSECRET=[any random secret]