React Native Task App with GraphQL and Apollo Express Server
Requirements:
- MySQL 5.7+
- Node 14+
To setup in a new local environment and open the web app:
- Make sure you have the correct Node version
$ nvm use
- Install dependencies
$ npm install
-
Go to
/server
directory and setup environment variables by adding an.env
file based on.env.example
-
Go back to the project root directory to create the database and run the migration script
$ npm run db:migrate
- (Optional) Seed the database with data
$ npm run db:seed
- Start the client and dev server
$ npm run dev
Test Credentials:
-
username:
user1
-
password:
12345aA!
-
username:
user2
-
password:
12345aA!
-
username:
user3
-
password:
12345aA!
To open in an Android or iOS emulator:
- Make sure the dev server is already running
- Make sure the emulator is already running
- Go to http://localhost:19002 to open the Metro Bundler
- Select run on Android or iOS simulator