0.5.0 • Published 2 years ago
lawb-fe v0.5.0
Love antiques dealers websites generator
Project description
Solution to generate static websites for dealers based on selected configuration.
Related resources
Runtime environment
- node.js
- next.js
Commands
The list of tasks/commands/scripts that could be run within application
NEXT_PUBLIC_TEMPLATE={template} NEXT_PUBLIC_MODE=preview npm run build
- generate template previewNEXT_PUBLIC_DEALER_URL={dealer-url} NEXT_PUBLIC_DEALER_ID={dealer-id} npm run build
- generate static website based on dealer dataNEXT_PUBLIC_DEALER_WEBSITE_URL={dealer-website-url} npm run sitemap:generate
- generate sitemap.xml based on pages in theout
directory
Development environment
Manual setup
- Install
node.js
andnpm
- Copy
.env.example
as.env.local
- Fill
.env.local
with proper values for environment variables - Run
npm install
in project root directory
Manual boot
- Run
NEXT_PUBLIC_DEALER_URL={dealer-url} NEXT_PUBLIC_DEALER_ID={dealer-id} npm run dev
Test environment
- Linter
npm run lint
Deployment instructions
Deployment procedure for staging and production.
Staging deploy
Staging is deployed automatically when there are changes in stage
branch in a repository.
Production deploy
Staging is deployed automatically when there are changes in production
branch in a repository.