Runs in Nodejs for server and React native for client
If using node version manager, execute this command:
nvm install 18.13.0
nvm use 18
If not using node version manager, download using this link
You can download mysql in this link
** Dont forget to create a database for this application
To install yarn - package manager
npm install -g yarn
To install project dependencies
cd <path-to-project>
yarn install
Edit .env file and update the app settings, mysql settings and security settings
To run the server
npm run start
To check for lint errors, and auto-fix if possible
npm run lintfix
To run test scripts
npm run test
In a new terminal go to the client folder
cd <path-to-project>/client
Install expo
npm install -g expo-cli
To install project dependencies
yarn install
Update the config file in client/app/config/settings
Set the baseUrl to the url of the nodejs application
To run on web
npm run web
To run on ios simulator
npm run ios
To run on android simulator
npm run android
If you encounter digital-envelope error you may need to set back to legacy
For windows
$env:NODE_OPTIONS = "--openssl-legacy-provider"
For linux/mac
export NODE_OPTIONS=--openssl-legacy-provider