فارسی | English
ReactJS server side rendering template (simple shopping website) with ExpressJS and ViteJS.
- Data fetching from RESTful API
- Sitemap add-on
- SEO friendly
git clone https://github.com/ramoures/express-react-ssr.git
cd express-react-ssr
npm install
npm run build
npm start
ornode server.mjs
- Browse
http://localhost:5173/shop/
Update the
.env
file to edit/remove the shop directory from the URL.
-
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.
After development completion:
npm run build
for build new dist directory.npm start
ornode server.mjs
- Browse
http://localhost:5173/shop/
API source: fakestoreapi.com
With the help of template-ssr-react-streaming
License Under The MIT License
Email: ramoures@gmail.com