https://github.com/localityin/apollo-server
High performance apollo-express server for both react native apps
https://github.com/localityin/apollo-server
apollo-server-express ecommerce graphql graphql-server mongodb mongoose retail
Last synced: 7 months ago
JSON representation
High performance apollo-express server for both react native apps
- Host: GitHub
- URL: https://github.com/localityin/apollo-server
- Owner: localityin
- Created: 2022-09-06T12:38:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T14:17:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T21:31:35.600Z (9 months ago)
- Topics: apollo-server-express, ecommerce, graphql, graphql-server, mongodb, mongoose, retail
- Language: TypeScript
- Homepage: https://status.localityorg.shop
- Size: 771 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Configure server
Setup env variables after creating `.env` file in the root directory. Following env variables are necessary for fully functioning server. More to be added accordingly
```sh
PORT=5000REDIS_HOST=
REDIS_PORT=6379NODE_ENV=
MONGODB_CONNECTION_STRING=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_MESSAGING_SID=TOKEN_SECRET=
REFRESH_TOKEN_SECRET=GOOGLE_MAPS_APIKEY=
```## Types
### Queries
```javascript
// user
getFeed;
getUser;
twoFactorAuth;
checkAuth;// store
getStore;
getConfirmation;// order
getOrder;
getOrders;
getDeliveryTimes; //FIXME: Unnecessary query
```### Mutations
```javascript
// user
login;
register;
updateAddress;
deleteAddress;
editProfile;
deleteAccount;// store
addAccount;
editStore;
addToInventory;// order
createOrder;
alterOrderState;
alterDeliveryState;
```### Subscriptions
```javascript
// user
userUpdate;// store
storeUpdate;
inventoryUpdate;
accountUpdate;// order
orderUpdate;
```