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
  • Nodejs Installation
  • Apache Installation
  • MySQL Setup
  • Imagemagick Installation
  • Install process manager for Node.js
  • Angular Installation
  • React Installation
  • Flutter installation
  1. Getting Started
  2. Prerequisites

Set up development environment

This document will guide you to set up your development environment to efficiently and properly use Spurtcommerce.

PreviousServer Configuration (Minimal)NextDevelopment and Setup

Last updated 7 months ago

To set up development environment ready for Spurtcommerce you need to install the following tools

Nodejs Installation

To install Node.js, use the following command. This command will automatically update the package list and install Node.js on your system.

sudo apt-get install nodejs

To install Node.js packages, use the following command

npm install

Apache Installation

Spurtcommerce deployment requires one of the web servers. We recommend using Apache. By using the following commands, you can set up the Apache in your server.

$ sudo apt update
$ sudo apt install apache2

Spurtcommerce deployment requires some additional apache modules that needs to be enabled. Using the following commands, you can enable those additional modules.

sudo a2enmod proxy | sudo a2enmod proxy_http | sudo a2enmod headers | sudo service apache2 restart

At this stage, you have completed successful installation of Apache.

MySQL Setup

We have used MySQL database for Spurtcommerce. Thus, you have to install MySQL database

Follow these steps to install MySQL

sudo apt install mysql-server

At this stage, MySQL server would have successfully installed. Now, as the next step, you have to create a password for the default root user. With the following command, you can create the password.

sudo mysql

Set MySQL password using following commands

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your-password'

Following that, exit the MySQL shell

exit

Imagemagick Installation

For all the image manipulation in Spurtcommerce, we have used Imagemagick. With the following commands, you can install Imagemagick.

$ sudo apt update
$ sudo apt install imagemagick

Install process manager for Node.js

The process manager will help you manage and keep your application online. Whenever the server stops due to any error, it will automatically restart the server. you can install any one of the following process manager

Forever Installation

Click the link given below to install and configure Forever Process manager

PM2 Installation

Click the link given below to install and configure PM2 Process manager

Angular Installation

For setting up angular first you need to install Node.js in your system

For installing Node.js, use the following command:

sudo apt-get install curl
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install nodejs
node -v

Then, to Install Angular in your system, use the following command:

sudo npm install -g @angular/cli

React Installation

Flutter installation

Installation:

Linux : In ubuntu terminal go to the bash.rc file using this command sudo gedit ~/.bashrc and export the flutter path and save it.

Windows : In windows, set the path in environment variables and save it.

Mac : In the mac terminal run the following command nano ~/.zshrc and export the flutter path and save it.

Install Android SDK :

  • After this step go to plugins and then search and install flutter plugin

  • After installing all the command line tools check the installed flutter version and sdk version and other details using flutter doctor.

You need NPM for Package Management in React, which requires .

Go to to install flutter latest stable version according to your platform Setup the path of flutter in your system: Locate to flutter folder and go to the bin directory like this USER/HOME/flutter/bin

To install android sdk for build to test your application you must need to install android studio from once you install android studio install sdk , CLI and sdk tools from sdk manager.

Node Js Installation
Apache Installation
MySQL Installation
Imagemagick Installation
Angular Installation
React Installation
Flutter Installation
Forever Installation
PM2 Installation
https://www.npmjs.com/package/forever
https://www.npmjs.com/package/pm2
Node.js Installation
https://docs.flutter.dev/get-started/install
https://developer.android.com/studio