Skip to content

ramoures/express-react-ssr

Repository files navigation

Express React SSR

فارسی | English

ReactJS server side rendering template (simple shopping website) with ExpressJS and ViteJS.

  • Data fetching from RESTful API
  • Sitemap add-on
  • SEO friendly


View Demo - (Mirror Link)


Installation

  1. git clone https://github.com/ramoures/express-react-ssr.git
  2. cd express-react-ssr
  3. npm install
  4. npm run build
  5. npm start or node server.mjs
  6. Browse http://localhost:5173/shop/

Update the .env file to edit/remove the shop directory from the URL.


Develop

  • Tailwind CLI build and minify process: npm run tw

  • npm run dev (In another command line)

    Browse http://localhost:4173/shop/

Always ready fresh template in development.

Build

After development completion:

  1. npm run build for build new dist directory.
  2. npm start or node server.mjs
  3. Browse http://localhost:5173/shop/

I Used

API source: fakestoreapi.com


With the help of template-ssr-react-streaming

License Under The MIT License

Email: ramoures@gmail.com