Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbchoa/admin-on-rest-apollo

Example admin app using admin-on-rest with Apollo backend
https://github.com/mbchoa/admin-on-rest-apollo

admin-on-rest apollo

Last synced: 2 days ago
JSON representation

Example admin app using admin-on-rest with Apollo backend

Awesome Lists containing this project

README

        

# TBT Admin POC with `admin-on-rest` & Apollo GraphQL

## Directory Structure
```
├── /build/ # Client-side output build directory
├── /src/ # Top-level package
│ ├── /components/ # Top-level React component package
│ ├── /graphql/ # Backend GraphQL server package
│ │ ├── /resolvers/ # GraphQL resolvers package
│ │ ├── /schema/ # GraphQL schemas package
│ │ │ ├── /mutations/ # GraphQL mutations
│ │ │ ├── /queries/ # GraphQL queries
│ │ │ ├── /types/ # GraphQL schema types
│ │ ├── index.js # Server-side entry point
│ │ └── ...
│ ├── App.js # Root React component
│ ├── buildApolloClient.js # Utility methods to build AoR Apollo client
│ └── index.js # Client-side entry point
```

## Getting Started

### Client
1. `yarn install` Install npm dependencies
2. `yarn start` Serves up client Express server
3. Navigate to `http://localhost:3000`

### Server
1. `cd /src/graphql` Navigate to graphql server source code
2. `yarn install` Install npm dependencies
3. `yarn build` Builds GraphQL server
4. `yarn serve` Serves up GraphQL Express server