ReactJS Server Side Rendering template (shopping website) with ExpressJS and ViteJS.
- Node.js Streams
- Data fetching from Rest API
- Sitemap add-on
- SEO friendly
Installation
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.
Develop
- Tailwind CLI build and minify process:
npm run tw
npm run dev
Browse http://localhost:4173/shop/
Always ready fresh template in development.
Build
After development completion:
-
npm run build
for build new dist directory. -
npm start
ornode server.mjs
- Browse
http://localhost:5173/shop/
I Used
- Node.js Stream
- Axios
- React Router Dom
- React Helmet
- Tailwind CSS framework
- XML Sitemap
- ...
Data source: fakestoreapi.com
License Under The MIT License
Email: ramoures@gmail.com
Top comments (0)