A react native quiz app with node express server backend and mysql database.
- client (contains react Native App code)
- server (contains nodejs code)
In this project you can run either using docker or manually. I will explain the both process
Navigate to the root folder and run the sh start.sh
in your terminal. It will build and run the server and database in docker container and later it will start the native app client.
To run the services manually and seprately you need to run your own mysql server and change db credentials in the server/request.js
file. We will move this to .env later
In the client folder react native app contains. First we have to navigate to client folder. In the root folder of the repo you can run the below commands to run the app.
cd client && yarn install
orcd client && npm install
npm start
To Run backend nodejs app navigate to backend folder. In the root folder you can the below command.
cd server && npm install
node request.js
Browse http://localhost:19006
cd client && npm test
- Using the state management library in more structured way for more features
- Backend app could have been configured for using .env so staging, production and development environment setup gets easy