0.5.0 • Published 2 years ago

lawb-fe v0.5.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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 preview
  • NEXT_PUBLIC_DEALER_URL={dealer-url} NEXT_PUBLIC_DEALER_ID={dealer-id} npm run build - generate static website based on dealer data
  • NEXT_PUBLIC_DEALER_WEBSITE_URL={dealer-website-url} npm run sitemap:generate - generate sitemap.xml based on pages in the out directory

Development environment

Manual setup

  1. Install node.js and npm
  2. Copy .env.example as .env.local
  3. Fill .env.local with proper values for environment variables
  4. Run npm install in project root directory

Manual boot

  1. 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.