1.0.0 • Published 2 years ago
@mbaluev/t1v3-shop-ssr-core v1.0.0
T1-v2-shop-SSR
How to use
Install it and run:
npm ci
npm run dev
The idea behind
The project uses :
- TypeScript
- Next.js, which is a framework for server-rendered React apps
- MaterialUI
@mui/material
and its peer dependencies, includingemotion
, the default style engine in MUI v5 - Docker
Using Docker
- Install Docker on your machine
- Build your container:
docker build -t t1-v2-shop-ssr .
- Run your container:
docker run -p 80:3000 t1-v2-shop-ssr
You can view your images created with docker images
In existing projects
To add support for Docker to an existing project, just copy the Dockerfile
into the root of the project and add the following to the next.config.js
file:
// next.config.js
module.exports = {
// ... rest of the configuration.
experimental: {
outputStandalone: true,
},
}
1.0.0
2 years ago