Skip to content

online0227/ssr-ts-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ssr-ts-boilerplate

Features:

  • 100% Typescript (except json and css files)
  • Separated API server
  • Following object-oriented programming principle (backend)
  • MVC, Singleton pattern implemented (backend)
  • Server Side Rendering + Code-splitting + Multi-domain + REST + Hot Reload
  • React, Mongo, Node.js, Webpack, Babel used
  • JWT Auth, simple user/admin dashboard

How to run:

  1. Set settings in src/config.ts
  2. Set settings in api/server/config.ts
  3. Create .env file in api folder (e.g. api/.env)
  4. Copy and paste following text into .env, then set the values:
DATABASE=mongodb://localhost:27017/ssr-ts-boilerplate
MONGO_USER=
MONGO_PASSWORD=
JWT_SECRET=
PORT=3001
  1. Create .env file in src folder (e.g. src/.env)
  2. Copy and paste following text into .env, then set the values:
PORT=3000
  1. Run it with "npm run dev" or "npm run prod" in src folder
  2. Run it with "npm run dev" or "npm run prod" in api folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published