KennethLloyd / react-native-task-app

React Native Task App with GraphQL and Apollo Express Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-task-app

React Native Task App with GraphQL and Apollo Express Server

Requirements:

  1. MySQL 5.7+
  2. Node 14+

To setup in a new local environment and open the web app:

  1. Make sure you have the correct Node version
$ nvm use
  1. Install dependencies
$ npm install
  1. Go to /server directory and setup environment variables by adding an .env file based on .env.example

  2. Go back to the project root directory to create the database and run the migration script

$ npm run db:migrate
  1. (Optional) Seed the database with data
$ npm run db:seed
  1. 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:

  1. Make sure the dev server is already running
  2. Make sure the emulator is already running
  3. Go to http://localhost:19002 to open the Metro Bundler
  4. Select run on Android or iOS simulator

About

React Native Task App with GraphQL and Apollo Express Server


Languages

Language:JavaScript 98.1%Language:Handlebars 1.6%Language:Shell 0.2%