-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(frontend): Removing frontend
Removing frontend folder and moving content of backend to the root of the project
- Loading branch information
Anas Tiour
committed
Dec 25, 2018
1 parent
2dfb91d
commit e6cd431
Showing
32 changed files
with
28 additions
and
179 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
# Apollo Server 2 Boilerplate | ||
[](http://commitizen.github.io/cz-cli/) | ||
|
||
Work In Progress | ||
|
||
## Quick start | ||
|
||
## Prerequisites | ||
1. Install dependencies: `npm install` | ||
2. Launch the Postgres database and Prisma server: `docker-compose up -d` | ||
3. Deploy your models to Prisma and generate the client: `prisma deploy && prisma generate` | ||
4. Run the API for development: `npm run dev` | ||
5. Access your Graphql API at http://localhost:4000 | ||
|
||
Docker | ||
Docker Compose | ||
Prisma CLI | ||
Node v8+ , npm v+ | ||
## Features to document | ||
|
||
## Quick start | ||
Prisma: | ||
- as ORM | ||
- point to its documentation, video | ||
- state principle of it and use | ||
- seeding the database | ||
|
||
Apollo: | ||
- Data sources: | ||
example use case from a public API of REST | ||
example of graphql API | ||
- Modules | ||
- Merging typedefs and resolvers? Happens at the module level in its `index.js` file | ||
|
||
## About modules | ||
|
||
The backend is organized into [GraphQL modules](https://graphql-modules.com/) | ||
More information on this [Medium post](https://medium.com/the-guild/graphql-modules-feature-based-graphql-modules-at-scale-2d7b2b0da6da) | ||
|
||
Each modules merges its types and resolvers in order to export a `GraphQLModule` instance. These modules are then imported and merged into a single `GraphQLModule` module in the file `src/api/modules/index.js`. This object holds, among others, the `schema` and `context` which are fed to the `ApolloServer` instance in `src/api/index.js` | ||
|
||
1. Clone the boilerplate: `git clone ` | ||
2. Install dependencies: `npm install` | ||
3. Run the API for development: `npm run dev` | ||
4. Access your Graphql API at http://localhost:4000 | ||
GraphQL modules offers extensibility of your code base and forces/helps you organize your SDL types by domain/feature rather than by type. | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.