Giter Club home page Giter Club logo

identifo-admin's Introduction

Identifo admin panel

CLI

All cli scripts are listed in the scripts section of package.json;

Install dependencies

$ npm i

All dependencies are listed in the dependencies section of package.json

Run build in production mode

$ npm run build

This script is going to compile a bundle and put in into build folder in the project's root. This folder contains all you need to deploy the application.

Run locally in development mode

$ npm run start

Run unit tests

$ npm run test

Run unit tests in watch mode

$ npm run test:w

Generate code coverage

$ npm run test:cov

Generated coverage report is going to appear as a coverage folder in the project's root.

Api url

You can specify api url by setting an API_URL env variable containing the full address. Example: https://api.identifo.com/admin

Mocking Api Calls

Api calls are described in services src/services. Each service has it's mocked version. In order to make use of mocked services instead of actual ones you should set a MOCK_API=true environment variable either through cli or using .env file in the project's root.

Deploying to subdirectory

To configure the SPA to work correctly on subdirectory you need to set BASE_URL environment variable. E.g. if you are deploying to localhost:8000/admin set BASE_URL=admin in the .env file.

If your assets are not served from the root you need to set ASSETS_PATH=/admin/ variable to be the root path to fetch the assets from. Note that in case of ASSETS_PATH the value should be surrounded by slashes as it takes part in different sorts of concatenations.

Deploying to Github Pages

Go to deploy branch

$ git checkout deploy

This branch is already configured for deployment.

Merge in the develop branch (or another branch you want to see deployed)

$ git merge develop

Then run deploy script. Make sure you've installed all dependencies.

$ npm run deploy

Note: usually it takes up to 5 minutes for the changes to get fully deployed even though it says published in the terminal.

identifo-admin's People

Contributors

dprovodnikov avatar esimonov avatar erudenko avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

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.