@@ -34,15 +34,11 @@ Strapi configuration is handled in `api.json` that looks like the following:
// strapi server data
{
// location of your strapi server
"server":"https://strapi.server.location",
// username with read access to the “events” db in strapi
"username":"usernameWithReadAccessToStrapi",
"password":"passWordWithReadAccessToStrapi",
// port for the server.json app that pull the latest data and images from strapi
"port":3128
}
```
...
...
@@ -79,7 +75,7 @@ To be able to load the content, you need to set an user with findOne and findAll
### example for the config.json file that must exist in /views/data/config.json
```
```js
{
// name of the site
"siteTitle":"Fest Name!",
...
...
@@ -91,7 +87,25 @@ To be able to load the content, you need to set an user with findOne and findAll
"theme":"basic"
],
// data used to define the api to send to and to manage from
"strapi":{
// // location of your strapi server (used to pull / push datas)
"server":"http://strapiserver.com",
// name for each api data
"apiEvent":"events",
"apiParticipants":"participants",
// used to build the manager part
"port":3128,
},
// Source for the data for the calendar. Can be `markdown` (if the event are set up using markdown (in `events/event01.md`)), or `json`, if the events list are in `_data/events.json`)