Skip to content

Raccoon App is a tools to measuring and getting styles of layouts design

License

Notifications You must be signed in to change notification settings

raccoon-app/ui-kit

Repository files navigation

RACCOON APP

Raccoon App is a tool to measuring and getting styles of layouts design

Latest version of app online

Main npm scripts

To build app, start server http://localhost:8080/ and watch for changes:

npm run watch

To build app:

npm start

To execute unit test:

npm test

Style Guide

Design

https://app.zeplin.io/projects.html

Environment

NODE_ENV - development|production

Backend

Authorization

Routes for authorization are in \back\controllers\auth.js

Authorization strategies have to be in \back\services\auth\strategies Initialization of all strategies and common method (logout) are in \back\services\auth\strategies\common.js

Each strategy have to register itself:

const strategies = require('./common'); strategies.register(this);

Success authorization returns token. This token will be used for authentication user on each request.

Authentication & Permissions

For user authentication header have to contain token in format: authorization: Bearer "my_token"

Authentication and check required user role are middleware, that can be added to any route (file \back\services\auth\auth.middleware.js)

Example:

const auth = require('./../services/auth/auth.middleware');

module.exports = router() .post('/add', auth.isAuthenticated, auth.requiredRole('admin'), addProject);

User's RESTs:

Project's RESTs:

About

Raccoon App is a tools to measuring and getting styles of layouts design

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •