Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

simplitech/blogsample-next-usecase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blogsample

Work in progress, don't take it too seriously

Setup

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

IntelliJ Setup

Plugins

  • JS GraphQL
  • Prisma Support
  • MDX

Lint setup

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.

Run the project locally

yarn dev

Code Guide Documentation

The starting point of the application is on pages, follow this link to understand the application strucuture.

Technologies

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.

Database Class Diagram

Problems to Commit?

Maybe TS + Eslint + Husky is blocking your crappy code 😅. Run this commands to check where to fix:

yarn ggez

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •