als260502 / card-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Presentation Card

This repository contains the source code of the presentation card.

The backend

The backend is a simple node fastify with prisma running sqlite to show presentation:

clone the repository enter backend folder then

  • rename the file .env.example to .env
  • run yarn install
  • run yarn prisma migrate deploy
  • run yarn dev

then you good to go to frontend

API Routes

GET /api/user/:id Returns data from a user
GET /api/card/generate Create a new user in database

Frontend

The frontend is NextJS and Typescript.

Usage

clone the repository enter backend folder then

clone the repository then

  • run yarn install

  • run yarn dev

  • make sure the backend are running

access the your browser and type http://localhost:3000


Test pages http://localhost:3000/generate

  • page to create new qrcode

http://localhost:3000/qrcode?id=cla1noq6a0000v6ho2g3u6iet&name=Andr%C3%A9%20Souza

  • example page thats show qrcode created

http://localhost:3000/card/cla1noq6a0000v6ho2g3u6iet

  • page that show presentation card from qrcode scan

Generate page Presentation page
QRCode page

About


Languages

Language:TypeScript 91.3%Language:JavaScript 5.2%Language:Shell 2.3%Language:Dockerfile 0.8%Language:CSS 0.5%