Giter Club home page Giter Club logo

formatch-server's Introduction

Formatch

This is a web client and API server for the Formatch App.

DB Entities

prisma erd

formatch-server's People

Contributors

mateusfg7 avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

formatch-server's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @apidevtools/swagger-cli Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency autoprefixer to v10.4.19
  • chore(deps): update dependency postcss to v8.4.39
  • fix(deps): update dependency formidable to v2.1.2 (formidable, @types/formidable)
  • fix(deps): update dependency react-markdown to v8.0.7
  • fix(deps): update dependency yarn to v1.22.22
  • chore(deps): update dependency @mermaid-js/mermaid-cli to v10.9.1
  • chore(deps): update dependency prisma-erd-generator to v1.11.2
  • chore(deps): update dependency tailwindcss to v3.4.6
  • chore(deps): update dependency tsx to v3.14.0
  • fix(deps): update dependency @google-cloud/storage to v6.12.0
  • fix(deps): update dependency date-fns to v2.30.0
  • fix(deps): update dependency eslint to v8.57.0
  • fix(deps): update dependency jose to v4.15.9
  • fix(deps): update dependency swagger-ui-react to v4.19.1 (swagger-ui-react, @types/swagger-ui-react)
  • fix(deps): update dependency zod to v3.23.8
  • fix(deps): update prisma monorepo to v4.16.2 (@prisma/client, prisma)
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update dependency tsx to v4
  • fix(deps): update dependency @types/node to v20
  • fix(deps): update dependency date-fns to v3
  • fix(deps): update dependency eslint to v9
  • fix(deps): update dependency jose to v5
  • fix(deps): update dependency short-unique-id to v5
  • fix(deps): update nextjs monorepo to v14 (major) (eslint-config-next, next)
  • fix(deps): update remark (major) (react-markdown, remark-gfm)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
.gitpod.Dockerfile
github-actions
.github/workflows/bump-tag.yml
  • actions/checkout v3
  • denoland/setup-deno v1.1.1
  • ubuntu 22.04
npm
package.json
  • @apidevtools/swagger-cli ^4.0.4
  • @google-cloud/storage ^6.8.0
  • @prisma/client ^4.8.0
  • @types/node 18.11.19
  • @types/react 18.0.28
  • @types/react-dom 18.0.11
  • add ^2.0.6
  • date-fns ^2.29.3
  • eslint 8.33.0
  • eslint-config-next 13.2.4
  • formidable ^2.1.1
  • jose ^4.11.2
  • next 13.2.4
  • phosphor-react ^1.4.1
  • react 18.2.0
  • react-dom 18.2.0
  • react-markdown ^8.0.5
  • remark-gfm ^3.0.1
  • short-unique-id ^4.4.4
  • swagger-ui-react ^4.15.5
  • typescript 4.9.5
  • yarn ^1.22.19
  • zod ^3.20.2
  • @mermaid-js/mermaid-cli ^10.0.0
  • @types/formidable ^2.0.5
  • @types/jsonwebtoken ^9.0.0
  • @types/swagger-ui-react ^4.11.0
  • autoprefixer ^10.4.13
  • postcss ^8.4.21
  • prisma ^4.8.0
  • prisma-erd-generator ^1.2.4
  • tailwindcss ^3.2.4
  • tsx ^3.12.2

  • Check this box to trigger a request for Renovate to run again on this repository

Web front-end

Create a website of the project with call-to-action for app store and aditional informations, such:

  • Project creators
  • Slides and PDFs links
  • Source code

Separated route

Create types of route: Public, Private and Administration routes.

DB Connection test

Create a lib to test db connection, refactoring:

try {
    await prismaClient.$queryRaw`SELECT 1`
  } catch (error) {
    if (error instanceof Prisma.PrismaClientKnownRequestError) {
      if (error.code === 'P1001') {
        console.error(error)
        return res
          .status(500)
          .json({ message: 'Error while connect with database.' })
      }
    } else {
      console.error(error)
      return res.status(500).json({ message: 'Internal server error.', error })
    }
  }

Setup Paths

Setup typescript paths to import with "@path/..."

Complete Professional Endpoints

Add some missing business rules on professional:

  • Return if a user already saved a professional or not when get professional information
  • Return if a user already rated a professional or not when get professional information
  • Return a average rate grade when get professional information
  • Add endpoint to save a professional

Users Endpoint

New routes and controllers to:

  • Create
  • Auth
  • Delete
  • Save Professionals
  • List saved Professionals
  • Activate Premium

Improve JWT

define rules for the validity of a JWT token

API Docs

Create API docs from Endpoints

YAML and JSON Swagger Editor

ToDo

User

  • /api/user
  • /api/user/create
  • /api/user/delete
  • /api/user/premium
  • /api/user/saved

Rate

  • /api/rate

Article

  • /api/article/{slug}
  • /api/article/create
  • /api/article/list

Advertisers

  • /api/advertisers/create
  • /api/advertisers/list

Professional

  • /api/professional/{code}
  • /api/professional/create
  • /api/professional/me
  • /api/professional/save
  • /api/professional/service
  • /api/professional/delete/{code}
  • /api/professional/update/{code}

Ref:

Rates Endpoint

  • Add an Rate tables with all rates, like:
Name Type
professional Professional
user User
rate_value Number
  • Add an endpoint for create a new rate.

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.