GithubHelp home page GithubHelp logo

frandiox / reactesse-ssr-template Goto Github PK

View Code? Open in Web Editor NEW
31.0 1.0 4.0 135 KB

๐Ÿ• Opinionated React + Vite Starter Template with SSR in Node.js

Home Page: https://reactesse-ssr.vercel.app/

License: MIT License

HTML 5.64% Shell 1.23% TypeScript 75.97% CSS 9.97% JavaScript 7.19%
ssr vite react vite-starter vite-template

reactesse-ssr-template's Introduction

Reactesse SSR

React + Vite + SSR template based on @antfu's Vitesse with vite-ssr.

Live Demo

Features


Pre-packed

UI Frameworks

Plugins

Dev tools

Try it now!

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

npx degit frandiox/reactesse-ssr-template my-reactesse-app
cd my-reactesse-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm

Checklist

When you use this template, try follow the checklist to update your info properly

  • Add a name field in package.json
  • Change the author name in LICENSE
  • Change the favicon in public
  • Remove the .github folder which contains the funding info
  • Clean up the READMEs and remove routes

And, enjoy :)

Usage

Development

Just run and visit http://localhost:3333

pnpm dev # SSR development
pnpm dev:spa # SPA without SSR

Build

To build the App, run

pnpm build

And you will see the generated files in dist, and some of these files will be moved to serverless for deployment.

Deploy on Vercel

Go to Vercel and install its CLI. Then:

pnpm preview # Simulate Vercel environment locally
pnpm deploy
pnpm deploy:prod

reactesse-ssr-template's People

Contributors

frandiox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

reactesse-ssr-template's Issues

Flash of unstyled content on fresh install

After doing a fresh install and not changing anything I'm running into a problem of unstyled content when doing the following:

npx degit frandiox/reactesse-ssr-template my-reactesse-app
cd my-reactesse-app
pnpm i 
pnpm dev

Screen Shot 2022-03-11 at 23 15 01

About 1-2 seconds later the styles load and display properly.

This is the console output. I do notice that there are also some issues in the package.json and an outdated package?

Screen Shot 2022-03-11 at 23 20 40

But those are minor compared to the flash of unstyled content.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.