Code Monkey home page Code Monkey logo

photobook-backend's Introduction

Hey there, I'm Gabby 👋🏼

New Graduate - Computer Science @ Western University💫

My Tech Stack 💻



photobook-backend's People

Contributors

pidgey0403 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

photobook-backend's Issues

Enable CORS Origin in Production

The front-end service is getting the error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://photobook-be.herokuapp.com/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 404.

Add CORS ORIGIN support to the repository, likely by adding app.enableCors() in main.ts, and also following this link to add CORS origin support in the GraphQLModule in app.module.ts

Generate GraphQL API services

Add graphql and apollo-graphql to the repository. Additionally, generate the appropriate resource(s) for the Image model.

There should be a folder created called Image with the following files in it:

  • image.graphql - GraphQL schema (SDL)
  • image.module.ts- organize and compartmentalize GraphQL imports, resolvers, services
  • image.resolver.ts - uses HTTP decorators to turn GraphQL operations into fetched data
  • image.service.ts - integration with Prisma to make queries and mutations to database

Add documentation + Comments

Add appropriate documentation and comments to the code base. Also clean up code to enhance readability and eliminate redundancy.

This could involve tasks like moving code chunks into separate functions, renaming files etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.