PERN Boilerplate
? WORK IN PROGRESS
?
upcoming features:
- Email confirmation
- Socials Login
Features
- GraphQL Server
- JWT Authentication
- Auto refresh access tokens on expire
- Schema generation for client side (server schema stays in sync with client schema)
Tech Stack
Client
- React + Vite
- Apollo GraphQL
- TailwindCSS (css utility framework)
- MobX (state-management)
- Formik (form handlers)
Server
- express + apollo-server-express
- Postgres (database)
- TypeORM (ORM)
- class-validator
- argon2 (password encryption)
- GraphQL endpoints (also compatible with REST)
Prerequisites
- Node (Download)
- Postgres (Download)
optional
Yarn (npm install)
Usage
- Clone the repository
Server
- Install dependencies
- Setup
ormconfig.json
- Create Postgres database
make sure to add postgres bin to environmental variables
- Setup
.env
and.env.development
- Initialize migrations
- Start the server
Client
- Install dependencies
- Run the generate script to sync server schema to the client
- Start the server
Preview
Client


Server

Prince Carlo Juguilon