Skip to main content

Installation

Let's discover cella template in less than 5 minutes.

Getting Started

Get started by cloning the Cella Frontend Template. Directly on github by using Use this template button.

Or using

git clone https://github.com/Groupe-Klocel/cella-frontend-template.git

Quick Start

Run this command :

cd cella-frontend-template
yarn install

The cd command changes the directory you're working with. In order to work with your newly created cella template, you'll need to navigate the terminal there.

The yarn install command will install all necessary dependencies, you need to run it in cella template

Environnement variables

In order to work , you need a .env file that will store your environment variables. It should be in .gitignore file. There are 4 variables :

The first one is the graphql endpoint for requests.

The second is represents your warehouse ID.

  • NEXT_PUBLIC_WAREHOUSE_ID=demo

If you want to have fake data from requests turn this into true. Note that some actions may not work with fake data.

  • NEXT_PUBLIC_FAKE_DATA_ON=false

If you want the same fake data turn this to true. It's only works if NEXT_PUBLIC_FAKE_DATA_ON=true

  • NEXT_PUBLIC_SAME_SEED_ON=false

This one allows to encrypt data stored in local storage when set to true.

  • NEXT_PUBLIC_LS_SECURE=true
danger

For obvious security reasons, it is highly recommended to keep this value to true and only change it for development (e.g. local host) or investigation (e.g. for a given and short period of time) purposes.

Start your template

yarn dev

The yarn dev command builds your template locally and serves it through a development server, ready for you to view at http://localhost:3000/ .

note

in case you have several servers, for instance: one for WMS and one for Radio, the one launched in second will automatically be set to http://localhost:3001/ .