43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
# Naida test
|
|
***Permissions Control Panel
|
|
|
|
Permissions API is front-end webpage for controlling User Permissions.
|
|
|
|
*Getting Started
|
|
|
|
Instructions for running webpage on your local machine for develoment and testing purposes.
|
|
|
|
*Prerequisited
|
|
|
|
Pull project folder from GitLab to your local machine: https://gitlab.com/saburly/testovi/naida
|
|
Front-end webpage files are in folder /permissions_control_panel.
|
|
|
|
*Installing dependencies
|
|
|
|
Check that package.json has listed "dependencies": {
|
|
"react": "^16.11.0",
|
|
"react-dom": "^16.11.0",
|
|
"react-scripts": "3.2.0",
|
|
"tachyons": "^4.11.1"
|
|
}
|
|
In terminal navigate to folder /permissions_control_panel and run:
|
|
$npm install
|
|
|
|
This should install all needed dependencies (node modules).
|
|
|
|
*Start project
|
|
|
|
As API is running on default localport 3000, for testing and development purposes, front-end webpage will be running on port 8000 as defined in env file.
|
|
|
|
To run both front end and back-end, open terminal, cd into root project folder and run script
|
|
$chmod +x startall.sh
|
|
$sh startall.sh
|
|
|
|
*Built With
|
|
|
|
-React
|
|
-Tachyons
|
|
|
|
|
|
|