Pre-requisites

📘

Access to Enatega Multivendor's administrative features and API requires a commercial license. The frontend is freely available to browse.

However, vendor-specific functionality such as managing products, orders, users and analytics is restricted to licensed accounts only. Our sales team is available to provide pricing plans and answer any other questions about becoming an authorized partner.

Please contact us at [email protected] to schedule a demo and discuss our licensing options.

Programming Languages and Tools

This section outlines the prerequisites needed to set up and run the Enatega API locally for development and testing purposes.

Node.js

An asynchronous event-driven JavaScript runtime environment for building server-side and networking applications.

Provides the runtime and core library needed for building the Express API server.

Download and install the latest Long Term Support (LTS) version from Node.js .

Include development tools like npm, Node.js API documentation.

React & React Native

Front-end frameworks for building user interfaces and mobile applications.

React is used for the responsive web interface.

React Native is used for building cross-platform native mobile apps.

Both are required since Enatega has web/mobile frontends.

Other Tools:

NPM

Node Package Manager - The package manager used by Node.js.

Comes bundled with Node.js and is used to install additional packages/dependencies.

Configure .npmrc to point to registries for package installation.

Git

Distributed version control system for tracking source code changes.

Manage code using local and remote repositories hosted on GitHub.

Familiarity with basic Git commands like clone, pull, commit, push.

MongoDB

Non-relational document-oriented database for flexible data storage.

Download the latest version from MongoDB: The Developer Data Platform

Installation guide - unpack, add bin directory to PATH, start mongod process. -Configure authentication, users, roles, access control as required.

GraphQL

Query language and runtime for APIs consumed by modern applications.

Install via npm and initialize with Express middleware.

Understand GraphQL type system, queries, mutations, resolvers etc.

Expo CLI

Development toolset for React Native apps including emulators, debuggers etc.

Install via npm globally and initialize projects with 'expo init'.

Here are more details added to the downloading and setting up the codebase:

2.1 Downloading the Code

There are two ways to obtain the Enatega source code:

Downloading a ZIP file:

  • Go to https://github.com/enatega
  • Click on the project repo you want (e.g. web-app)
  • Click "Code" button and select "Download ZIP"
  • A .zip file will download, extract it to your local machine

Cloning via Git:

  • Install Git if not already (Git )
  • Open terminal/command prompt
  • Clone the web app repo:

git clone https://github.com/enatega/web-app

Plain text

  • Clone the admin dashboard repo:

git clone https://github.com/enatega/admin-dashboard

Plain text

  • This will create local Git repositories with the full project history

2.2 Project Structure

  • Public folder - Static assets like images, favicon
  • src

Components - React components

Services - API calling logic

Layouts - Header/Footer

Routes - Route configuration

Redux - State management

index.js - Root component

  • Package.json - Dependencies
  • .gitignore - Excluded files
  • README - Usage instructions

2.3 Installing Dependencies

  • Navigate to project root in terminal
  • For the web app, run:

npm install

  • This reads package.json and installs all modules in node_modules/
  • For Admin dashboard use yarn instead of npm
  • Node_modules is large, avoid committing to Git

Find More Information on 2.3, in the next section.