Coder Social home page Coder Social logo

instagram-clone's Introduction

Instagram Clone | ๐Ÿค–Server

Tech Stack

GraphQl Yoga Apollo Prisma
AWS S3 Heroku Netlify
Passport Sendgrid

Study Document

Title Document
Basic Graphql Document
Basic Prisma Document
Graphql Api Document

Setup

$ yarn add graphql-yoga dotenv morgan graphql-tools merge-graphql-schemas
$ yarn add nodemon babel-node @babel/node @babel/preset-env @babel/core @babel/cli @bebel/runtime multer multer-s3 aws-sdk copy
$ yarn add @babel/plugin-transform-runtime -D
  • nodemon: Execute saved file without restarting the server
  • dotenv: Read .env file
  • morgan: Logger, To Monitor server pulling
  • graphql-tools merge-graphql-schemas: The tool what is needed to manage a lot of files related to GraphQL Reference
  • babel-node: Convert code to be compatible
  • multer: Middleware to upload files
  • multer-s3: multer to upload amazon s3 server
  • copy: npx module to copy and paste several files to build

nodemon || babel

Execute server.js with babel-node

// package.json
"scripts": {
    "dev": "nodemon --exec babel-node src/server.js"
  }

nodemon ๊ฐ์‹œํ•  ํŒŒ์ผ์˜ ํ™•์žฅ์ž ์ง€์ •

// nodemon.json
{
  "ext": "js graphql"
}

To make node detect import (import { GraphQLServer } from "graphql-yoga";)

// .babelrc
{
  "presets": ["@babel/preset-env"]
}

dotenv

// server.js
require("dotenv").config();

instagram-clone's People

Contributors

kwon770 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

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.