Skip to content

Commit

Permalink
refactor(frontend): Removing frontend
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 32 changed files with 28 additions and 179 deletions.
File renamed without changes.
40 changes: 28 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
# Apollo Server 2 Boilerplate
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](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.

8 changes: 0 additions & 8 deletions backend/.babelrc

This file was deleted.

9 changes: 0 additions & 9 deletions backend/.dockerignore

This file was deleted.

7 changes: 0 additions & 7 deletions backend/.env.dev.example

This file was deleted.

5 changes: 0 additions & 5 deletions backend/.env.example

This file was deleted.

4 changes: 0 additions & 4 deletions backend/.eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions backend/.eslintrc.js

This file was deleted.

35 changes: 0 additions & 35 deletions backend/README.md

This file was deleted.

File renamed without changes.
25 changes: 0 additions & 25 deletions frontend/pages/user/index.vue

This file was deleted.

17 changes: 0 additions & 17 deletions frontend/pages/user/login.vue

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/pages/user/logout.vue

This file was deleted.

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.

0 comments on commit e6cd431

Please sign in to comment.