A boilerplate for React client + Express server project using Tynder data validation library.
This boilerplate is based on the generated codes of the express-generator and Create React App.
- Declarative data validation.
- Define the schema with TypeScript-like DSL.
- Client and server share a schema.
- Client and server are written in TypeScript + ES Modules.
- Server does not depend on Babel and Webpack.
- Node.js >=12.13.0
git clone https://github.com/shellyln/tynder-express-react-ts-esm-quickstart.git
cd tynder-express-react-ts-esm-quickstart
rm -rf .git
git init
vi package.json # and edit project properties...
npm install
cd client
npm install
cd ..
git add .
git commit -m "initial commit"
npm run build
cd client
npm run build
cd ..
First terminal:
npm start
Second terminal:
cd client
npm start
- Tynder: https://github.com/shellyln/tynder
- Modules - Node.js Documentation: https://nodejs.org/api/modules.html
ISC
Copyright (c) 2020 Shellyl_N and Authors.