README.md 991 Bytes
Newer Older
CupCakeArmy's avatar
CupCakeArmy committed
1
# Admintool
2
3
4
5
6
7
8
9
10
11

# Developer Installation

```
npm install
```

And now, start developing:

```
12
npm run start
13
```
CupCakeArmy's avatar
CupCakeArmy committed
14

15
16
17
18
19
20
21
22
23
24
25
26
27
28
*Warning*: For installation on Ubuntu 16.04 (and possibly similar), you need to install nodejs from the repos source.
1. Remove nodejs if you already have it (ONLY IF YOU REALLY WANT!):
```
sudo apt remove nodejs
```
2. Add nodejs10 from repo (download): `curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -`
3. Install: `sudo apt install -y nodejs`
4. Clean-up and install the packages for amiv-admintools
```
rm -rf node_modules/
npm install
npm run start
```

29
30
This will open up a local server outputting the current version of the admintools. It refreshes automatically as soon as you save changes in any `.js` file.

CupCakeArmy's avatar
CupCakeArmy committed
31
### File Structure:
32
33
34
35
36
37
38
* res (Resources)
    - favicon
    - logo
* src
    - views (reusable view components, etc for Tables and selection lists)
    - `index.js` main file
    - `*Tool.js` main file per API resource, e.g. for all user-related UIs.