hubl/README.md

102 lines
2.8 KiB
Markdown
Raw Normal View History

2019-04-29 12:46:13 +00:00
# SiB App
2018-11-07 18:05:32 +00:00
2019-04-29 12:46:13 +00:00
SiB App is the magic tool that allows the Happy Dev network to thrive in a decentralized way.
2018-09-28 19:24:25 +00:00
2019-04-29 12:46:13 +00:00
## Getting Started
2018-11-14 12:50:38 +00:00
2019-04-29 12:46:13 +00:00
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
2018-11-14 12:50:38 +00:00
2019-04-29 12:46:13 +00:00
### Prerequisites
2018-11-14 12:50:38 +00:00
To install SiB App, you'll need:
2018-11-14 12:50:38 +00:00
* A SIB server with the appropriate modules
* A Prosody Server (with [appropriate modules](https://git.happy-dev.fr/startinblox/prosody/custom-prosody-modules/)
* A SMTP Server (optional)
* NodeJS on your machine
2018-11-14 12:50:38 +00:00
Before diving in you have to check your SIB server supports the following LDP packages:
2018-11-14 12:50:38 +00:00
* djangoldp_project: 0.1.12
* djangoldp_uploader: 0.0.5
* djangoldp_circle: 0.1.9
* djangoldp_notification: 0.1.4
* djangoldp_account: 0.2.12
* djangoldp_skill: 0.1.1
* djangoldp_joboffer: 0.1.1
* djangoldp_conversation: 0.2.1
* djangoldp_profile: 0.1.4
* djangoldp_invoice: 0.1.0
* oidc_provider: 'git+https://github.com/jblemee/django-oidc-provider.git@develop'
2018-11-14 12:50:38 +00:00
Those packages are given with the last stable version tested.
2018-11-14 12:50:38 +00:00
Refer to the [documentation to install a SIB server](https://git.happy-dev.fr/startinblox/devops/doc/wikis/y_a_sib_application) with this configuration.
## Configure your SIB server
2018-11-14 12:50:38 +00:00
Create a Client ID for Prosody & Client
2018-09-28 19:24:25 +00:00
2019-11-16 15:09:55 +00:00
- Login on `localhost:8000/admin/` with the admin account you configured
2019-04-29 12:46:13 +00:00
- Add a `Clients` on `OpenID Connect Provider` section
- Name it as you wish
- `Client type`: `Public`
- `Response types`: `id_token token (Implicit Flow)`
- `Redirect URIs`:
```
http://localhost:3000
http://127.0.0.1:3000
http://0.0.0.0:3000
http://localhost:8000
https://myserver.com
```
- Keep the `6-digits` newly create `Client ID` somewhere
## Build the application
In order to find your server(s) the client application needs to be assembled with the proper configuration.
2019-04-29 12:46:13 +00:00
Get the code of the SIB app on your machine:
2019-04-29 12:46:13 +00:00
```
$ git clone ...
2019-04-29 12:46:13 +00:00
```
Then create a `config.json` with all the the capabilities the SIB App requires. Which are:
* businessproviders
* circles
* groups
* joboffers
* projects
* skills
* users
[The documentation](https://git.happy-dev.fr/startinblox/devops/doc/wikis/create_sib_application) explains the details of this file but for convienence a `config.sample.json` exists in the source.
2019-04-29 12:46:13 +00:00
Then build your new SIB App:
```
$ npm run build
```
2019-04-29 12:46:13 +00:00
The application bundle is in the `dist` folder, ready to be deployed everywhere as a static file.
2019-04-29 12:46:13 +00:00
## Built With
* [Sib-Core](https://git.happy-dev.fr/startinblox/framework/sib-core/) - An awesome new framework!
2019-04-29 12:46:13 +00:00
<!---
## Contributing
We may add a `CONTRIBUTING.md`
## License
We may add a `LICENSE.md`
## Acknowledgments
* Maybe some thanks too
* Inspiration
* etc
--->