Giter VIP home page Giter VIP logo

semanaddev-myscret's Introduction

Lab Project MyScret

Project created during the Full-Stack Journey from 1ÂȘ Semana DDEV.

Requirements

API Features

  • Route -> Controller -> UseCase -> Access the DB (DAO, Repository)

  • The user should create an account with email and password

    • UseCase UseCreate
  • The user should update their profile, only their name and picture.

  • The user should authenticate in the account.

  • The user should create a question.

  • The user should list questions created.

  • The user should remove create a question.

  • The user should answer questions anonymously.

  • Optionally, the user can answer the question with your information.

Database

  • A User can be the author of multiple Questions.
  • A User can be the author of multiple Answers.
  • A Question has a single User as its author.
  • A Question can have multiple Answers.
  • An Answer has a single User as its author.
  • An Answer belongs to a single Question.

Entities

Users
- userId [uuid, PK]
- name [varchar(255), not null]
- email [varchar(255), not null]
- pictureUrl [varchar(255), not null]
- password [text, not null]
- createdAt [timestamp, default now()]
- updatedAt [timestamp, null]

Questions
- questionId [uuid, PK]
- userId [uuid, FK]
- question [varchar(255), not null]
- createdAt [timestamp, default now()]
- updatedAt [timestamp, null]

Answers
- answerId [uuid, PK]
- questionId [uuid, FK]
- userId [uuid, FK, null]
- answer [varchar(255), not null]
- createdAt [timestamp, default now()]
- updatedAt [timestamp, null]

Entity relationships:

User (ID, ...)
|--< Questions (UserID [FK], ...)
    |--< Answers (UserID [FK], QuestionID [FK], ...)

semanaddev-myscret's People

Contributors

odanieldcs avatar

Stargazers

Sheilane Isidio Araujo avatar Cynthia Cruz avatar

Watchers

 avatar  avatar

Forkers

betokast

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.