GithubHelp home page GithubHelp logo

wao's Introduction

Wrong Answers Only

Ask questions or answer it wrong.

The purpose of this project is to show some knowldge I have gained with GraphQL + Express + Prisma. There is also an HTTP REST API in the backend to address the Question domain, a simple CRUD, from which I have built the GraphQL service.

Dependencies

  • Node.js 13+
  • Yarn
  • Docker

Backend

PostgreSQL set-up

Download postgres image

docker pull postgres:latest

Setup postgres container with name wao-postgres

docker run --name wao-postgres -p 5432:5432 -e POSTGRES_PASSWORD=itswrong -d postgres

Enter the container

docker exec -it wao-postgres bash

Enter the database server

psql -U postgres

Add UUID extension

create extension if not exists "uuid-ossp";

Check installation

select uuid_generate_v1();

Install packages

yarn install

Prisma ORM

Generate the migration script after modeling

yarn prisma migrate dev --name init --preview-feature

Build the Prisma client every time after change the scheme

yarn prisma generate

Run

yarn start

Frontend

Install packages

yarn install

Run

yarn start

Reference

Clientes

wao's People

Contributors

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