Concept code to build server and client for item database. Consist of two part: server and client
The server is serving graphql endpoints using apollo-server
-
Install dependencies
cd server yarn
-
start server
yarn start
-
yarn build
-
edit .env with these line (adjust to your own environment)
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/itemdb" SERVER_PORT=4000
The client is using create-react-app connected to server using graphql
-
Install dependencies
cd client yarn
-
start client
yarn start