Spurtcommerce
DocumentAPI ReferenceAdd-ons
Docs
Docs
  • Overview
  • Getting Started
    • Introduction
    • Prerequisites
      • Server Configuration (Minimal)
      • Set up development environment
    • Development and Setup
      • API Setup
      • Environment Configuration
      • Store Front Setup
        • Angular Store Front
        • React Store Front
        • Flutter store front
      • Angular Admin Setup
      • Angular Vendor Setup
  • API Deployment and Setup
    • Deployment From Source Code
    • Deployment From Docker
    • Troubleshooting
  • Frontend Deployment Setup
    • Store Front Setup
      • React Store Front
      • Angular Store Front
      • Flutter Store Front
      • Troubleshooting
  • Front End Angular Admin Setup
    • Angular Admin
    • Troubleshooting
  • Front End Angular Vendor Setup
    • Angular Vendor
    • Troubleshooting
  • For Developers
    • Architecture
      • Back End API Architecture
      • Front-end Architecture
      • Technology stack
    • Performance
      • Benchmark
      • Image Optimzation
      • Load Balancing
      • RabbitMQ
      • Clustering
      • Database Load Balancing
    • Security
    • Testing Reports
      • Unit Testing Report
      • E2E Test Report
      • Vulnerability Test Report
        • Spurt Admin Report
        • Spurt Store Report
        • Spurt Vendor Report
      • Functional Test Report
  • How to Guides
    • Store Language Setup
    • Addon Management
    • Spurtcommerce Microservices Deployment
Powered by GitBook
On this page
  • Build your application in Development Mode
  • For SSR in Development (Server Side Rendering)
  • Build your application in QA Mode
  • For SSR in QA (Server Side Rendering)
  • Build your application in Production Mode
  • For SSR in Production (Server Side Rendering)
  1. Frontend Deployment Setup
  2. Store Front Setup

Angular Store Front

You can use this step-by-step guide for Front End Deployment Setup.

PreviousReact Store FrontNextFlutter Store Front

Last updated 7 months ago

For Initial Angular Storefront Setup and to run the application, refer to under .

Build your application in Development Mode

While building the application in development mode → src→ environments → environment.dev.ts,

export const environment = {
production: false, 
storeUrl: '<Your API Base url>', // eg: 'http:/localhost:8000/backend/api/'
imageUrl:'<Your API url for image resize>', // eg: 'http:/localhost:8000/backend/api/media/image-resize' 
};

To build your application in development mode, run the following command:

ng build --configuration development

For SSR in Development (Server Side Rendering)

Step-1 > Build and run the project with the below mentioned command

npm run dev-build:ssr && npm run serve:ssr

Step-2 > Open the browser and navigate to

http://localhost:4000
ProxyRequests off
<Proxy *> 
            Order deny,allow 
      Allow from all
</Proxy>

</Location>
ProxyPass http://127.0.0.1:4000/ 
ProxyPassReverse http://127.0.0.1:4000/
</Location>

Build your application in QA Mode

While building the application in QA mode → src→ environments → environment.qa.ts

export const environment = {
production: true, 
storeUrl: '<Your API Base url>', // eg: 'http:/localhost:8000/backend/api/'
imageUrl:'<Your API url for image resize>', // eg: 'http:/localhost:8000/backend/api/media/image-resize' 
};

To build your application in QA mode, run the following command:

ng build --configuration qa

For SSR in QA (Server Side Rendering)

Step-1 > Build and run the project with the below mentioned command

npm run qa-build:ssr && npm run serve:ssr

Step-2 > Open the browser and navigate to

http://localhost:4000
ProxyRequests off
<Proxy *> 
            Order deny,allow 
     Allow from all
</Proxy>

</Location>
ProxyPass http://127.0.0.1:4000/ 
ProxyPassReverse http://127.0.0.1:4000/
</Location>

Build your application in Production Mode

While building the application in production mode → src→ environments → environment.prod.ts,

export const environment = { 
production: true, 
storeUrl: '<Your API base url>', // eg: 'http:/localhost:8000/backend/api/' 
imageUrl: '<Your API url for image resize>', // eg: 'http:/localhost:8000/backend/api/media/image-resize'
 };

To build your application in production mode, run the following command:

ng build – prod

For SSR in Production (Server Side Rendering)

Step-1 > Build and run the project with the below mentioned command

npm run build:ssr && npm run serve:ssr

Step-2 > Open the browser and navigate to

http://localhost:4000
ProxyRequests off
<Proxy *> 
      Order deny,allow 
      Allow from all
</Proxy>

</Location>
ProxyPass http://127.0.0.1:4000/ 
ProxyPassReverse http://127.0.0.1:4000/
</Location>



Step-3> For configuring the SSR, check the existence of this line in your . If not, then add this line in your server.

Step-3> For configuring the SSR, check the existence of this line in your . If not, then add this line in your server.

Step-3> For configuring the SSR, check the existence of this line in your . If not, then add this line in your server.

Angular Storefront Setup
Development and Setup
Apache Server
Apache server
Apache server