Giter VIP home page Giter VIP logo

instaclone-backend's Introduction

instaclone-backend

인스타그램 클론 backend

Prisma

Setup

Prisma Studio

  • url
  • setup
    ## 공식문서에는 아래와 같이 하면 된다.라고 나오지만 .env 파일이 root 디렉토리가 아닌 다른 폴더에 있다면 다르게 실행 시켜 주어야함
    $ npx prisma studio
    
    ## 다른폴더에 .env 파일이 있다면 아래처럼 실행(package.json에 등록이 편함)
    $ dotenv -e config/.env.dev -- npx prisma studio

db modeling & migrate

  • 모델작성
    • /prisma/schema.prisma
  • 마이그레이트 postgres db
    • .env 파일이 커스텀으로 다른 폴더에 존재한다면 dotenv-cli 를 이용하여 아래와 같이 migrate 를 수행할 수 있다.
    $ dotenv -e config/.env.dev -- npx prisma migrate dev

Postgress DB

  • download

  • 사용자 계정생성 및 비번 set

      -- user add
      create user chane81
        superuser
        createdb
        createrole
        replication
        bypassrls;
    
      -- user pwd change
      alter user chane81 with password '12345';

instaclone-backend's People

Contributors

chane81 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.