Giter Club home page Giter Club logo

storefront's Introduction

APISuite Frontend

This is APISuite's core frontend repository.

Set up

Requirements

  • Node.js >=v15.14.0

Install dependencies

npm i

Custom build

If you need to use your version of APISuite's portal (either because you're using a fork or want to install extensions), it is advised to use the existing Dockerfile.

  • Create the .env file and change the URLs accordingly
  • Create the extensions configuration file (see EXTENSIONS.md for more details)
  • Make the Docker image: docker build -t your-tag .

Handling private GitHub-hosted dependencies

Some dependencies (node modules) might be hosted in private GitHub repos. This might be the case when using UI extensions. In this case, you need to have your local machine and Git host (GitHub) set up with your SSH keys before running npm install. If you need help, read this documentation.

Configuring your local environment

  1. Copy the .env.sample file to .env and adapt it to your setup

Run

To start a webpack development server that rebuilds the project on every change, run:

npm run dev

To create a build:

npm run build

Go to https://localhost.develop.apisuite.io:9001

Extending the APISuite Portal

The APISuite Portal can be extended through APISuite UI Extensions. For more details consult the EXTENSIONS.md documentation.

Troubleshooting

Session Cookies

In order for the login flow to work and be secure cookie are used and are blocked to specific domains. So to be able to run the app locally you need to edit you host file (/etc/hosts) and add the following: 127.0.0.1 localhost.develop.apisuite.io.

Permission denied (publickey)

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

There's something wrong with your SSH Key setup. Read this documentation.

Tests

Run tests with npm test or npm run cy for independent test selection and visualization.

Rules & Conventions

  • keep all test IDs in src/testIds.ts
  • always insert test ID attribute as first attribute in the element
<Grid
    data-test-id={testIds.greetingSection}
    ...

storefront's People

Contributors

a31859 avatar janssenbrm avatar pedrocloudoki avatar s1moe2 avatar semantic-release-bot avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

janssenbrm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.