Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Casperhr authored Jan 4, 2017
1 parent 533c9fa commit 3443fa2
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ Create config adminpanel.json

```
{
"name": "Sandbox2",
"name": "Nodes Admin Panel",
"unauthorizedPath": "/admin/login",
"loginSuccessPath": "admin/dashboard",
"loadRoutes": true,
"profileImageFallbackUrl": "https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg",
"welcomeMailViewPath": "Emails/welcome",
"resetPasswordViewPath": "Emails/reset-password"
"resetPasswordViewPath": "Emails/reset-password",
"ssoRedirectUrl": "https://mysso.com",
"ssoCallbackPath": "/admin/ssocallback"
}
```
Expand All @@ -55,13 +58,6 @@ And add provider
```
try drop.addProvider(AdminPanel.Provider.self)
```

Either copy the views in or change the folder to read the views from, fx
```
drop.view = LeafRenderer(
viewsDir: Droplet().workDir + "/Packages/AdminPanel-0.2.0/Sources/AdminPanel/Resources/Views"
)
```
### Seed data
```
vapor run admin-panel:seed
Expand All @@ -81,7 +77,7 @@ https://github.com/nodes-vapor/storage
#### Setup

- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/gulp` to the root of your project
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Resources/Assets` to the `Resources` folder in your project
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Resources` to the `Resources` folder in your project
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Public/favicon.ico` and the `favicon` folder to the `Public` folder in your project
- Run `npm install` > `bower install` > `gulp build`

Expand All @@ -96,6 +92,12 @@ Put your JavaScript files in `/Resources/Assets/Js` - if you need specific js fo

When compiling, all files *not* in `Pages` will be concatinated and minified. Page specific js is only minified.

#### Using views from packages (for development)
```
drop.view = LeafRenderer(
viewsDir: Droplet().workDir + "/Packages/AdminPanel-0.2.0/Sources/AdminPanel/Resources/Views"
)
#### Read more
Github: https://github.com/nodes-frontend/nodes-ui
Expand Down

0 comments on commit 3443fa2

Please sign in to comment.