Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.16 KB

File metadata and controls

39 lines (27 loc) · 1.16 KB

Dependencies

Node.js (https://nodejs.org/en/)
Apollo (https://www.apollographql.com/)
Graphql (https://graphql.org/)
React (https://reactjs.org/)

Usage

Clone main repository and run cd sovtech

Environment variables

Create Environment variables by running a simple command. Command syntax npm run env:generate ${ENV_VARNAME}={ENV_VARKEY} ${ENV_VARNAME}={ENV_VARKEY} . You can chain all the environment variables in one command separated by spaces
Example env script generation for this project:

npm run env:generate NODE_ENV=development PORT=4000 API_URI=https://swapi.dev/api/people/

Installing Dependencies

Backend Server Dependencies run npm install && npm install graphql
Client/Frontend Dependencies run npm run client:install

Build GraphQL Schema

*Note (You have to have the Grahpql server running (npm run server) before running the following command)
npm run schema:download && npm run schema:generate-watch

Start App

npm run sovtech

Test App

Frontend: navigate to http://localhost:3000
Backend: navigate to http://localhost:4000/graphiql

TODO

Write Tests