Work in progress, don't take it too seriously
Install the dependencies
yarn
Create a .env file on the root folder with a content like this
DB_HOST="localhost"
DB_NAME="blogsample"
DB_USER="root"
DB_PASS="root"
DATABASE_URL="mysql://${DB_USER}:${DB_PASS}@${DB_HOST}:3306/${DB_NAME}?useSSL=false"
JWT_SECRET="<any secret here>"
STORYBOOK_ZEPLIN_TOKEN="<optional zeplin access token, create one here: https://app.zeplin.io/profile/developer >"
Run this command to setup Husky (pre-commit tasks) and the Database (with prisma)
yarn setup
- JS GraphQL
- Prisma Support
- MDX
Open File > Settings
and navigate on the menu Languages and Frameworks > Javascript > Code Quality Tools > ESLint
and
check the option Run eslint --fix on save.
yarn dev
The starting point of the application is on pages, follow this link to understand the application strucuture.
This is a Next Application, which is a React web application with Server-side Rendering capabilities.
For the Back-end API we are using GraphQL protocol implemented with Apollo Server and TypeGraphQL.
For the Database we are using Prisma with MySQL.
For the Front-end styling we are using ChakraUI.
Maybe TS + Eslint + Husky is blocking your crappy code 😅. Run this commands to check where to fix:
yarn ggez