-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added a restructured directory apollo * fix failing tests * delete unused files after restructure * clean up - remove unused dependecies - edit package.json - gitignore package-lock * delete unused else statement * Edit .gitignore * Combine resolvers component files in apollo directory * Add trigger for deploy branch * GoogleCloudPlatform/github-actions/setup-gcloud has been deprecated. * update docker build from ./sources * Update Dockerfile * Add secrets for .env and admin sdk * Update gcp-deploy.yml * Update gcp-deploy.yml * Update gcp-deploy.yml * Update Dockerfile * Update docker-compose.yml * Update Dockerfile * Update Dockerfile * Delete docs.yml * Update gcp-deploy.yml * Update .dockerignore * Update gcp-deploy.yml * Update gcp-deploy.yml * Update gcp-deploy.yml * Update gcp-deploy.yml * Update index.js * Update gcp-deploy.yml * Update gcp-deploy.yml * Update gcp-deploy.yml Co-authored-by: roshankshaw <[email protected]> Co-authored-by: HarishTeens <[email protected]> Co-authored-by: Harish <[email protected]>
- Loading branch information
1 parent
aedf779
commit 0102ba3
Showing
52 changed files
with
329 additions
and
373 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM node:alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json /app | ||
|
||
# COPY ./project-elaichi.json /app | ||
|
||
RUN npm install --production --force | ||
|
||
COPY . /app | ||
|
||
RUN npm install pm2 -g | ||
|
||
CMD ["pm2-runtime","start","index.js","-i","max"] |
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
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
4 changes: 2 additions & 2 deletions
4
sources/resolvers/accessLevel.js → ...ollo/accessLevels/accessLevel.resolver.js
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
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
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
4 changes: 2 additions & 2 deletions
4
sources/resolvers/club.js → sources/apollo/clubs/club.resolver.js
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** @format */ | ||
|
||
const PERMISSION_DENIED = { | ||
__typename: 'ErrorClass', | ||
message: `Permission Denied.`, | ||
code: `ERROR101`, | ||
}; | ||
|
||
const INVALID_INPUT = { | ||
__typename: 'ErrorClass', | ||
code: `ERROR102`, | ||
} | ||
|
||
module.exports = { | ||
PERMISSION_DENIED, | ||
INVALID_INPUT | ||
}; |
10 changes: 5 additions & 5 deletions
10
sources/datasources/events.js → sources/apollo/events/event.datasources.js
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
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
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** @format */ | ||
|
||
const User = require('./users/user.resolver.js'); | ||
const Event = require('./events/event.resolver.js'); | ||
const Club = require('./clubs/club.resolver.js'); | ||
const Venue = require('./venues/venue.resolver.js'); | ||
const AccessLevel = require('./accessLevels/accessLevel.resolver.js'); | ||
const Story = require('./stories/story.resolver.js'); | ||
const { GraphQLDateTime } =require ("graphql-iso-date"); | ||
|
||
const FieldResolver = {}; | ||
const Query = {}; | ||
const Mutation = {}; | ||
|
||
const schemas = [User, Event, Club, AccessLevel,Story]; | ||
schemas.forEach((s) => { | ||
Object.assign(FieldResolver, s.fieldResolvers); | ||
Object.assign(Query, s.queries); | ||
Object.assign(Mutation, s.mutations); | ||
}); | ||
|
||
//Custom Resolver for Date object | ||
const CustomScalarResolver = { | ||
Date: GraphQLDateTime | ||
}; | ||
|
||
const exportResolvers = { | ||
Query, | ||
Mutation | ||
}; | ||
Object.assign(exportResolvers, FieldResolver); | ||
Object.assign(exportResolvers, CustomScalarResolver); | ||
module.exports = exportResolvers; |
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
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
Oops, something went wrong.