- Install dependencies on
backend
andfrontend
. - Create a copy of
backend/config.def.js
onbackend/config.js
and edit it. - Set environtment variable
PORT
(default is 5000) - Build frontend.
- Run migrations with Knex (
cd backend && yarn migrate
)
Run the following commands in the corresponding directories to start TWIN:
- Start the backend with
yarn dev
(oryarn start
for production). - Start the frontend with
yarn start
for development, or build it for production withyarn build
.
Add limit
property to payload.
{
// ...
"limit": {
"collections": ["collection1", "collection2"],
"languages": ["en_GB"]
}
// ...
}
Remove universal
property from metadata
and each translation.
Inverse the default value of blacklist
.
Add metadata
property to payload to reflect new collection file structure.
Add fileName
property to translations to indicate which file (collection) they belong to.
Add anti-piracy values to payload (%%__USER__%%
as user
, %%__RESOURCE__%%
as resource
and %%__NONCE__%%
as nonce
).
Add _twin
object (with id
, dateCreated
, dateUpdated
, tags
).
Add id
property to sign group locations.
Add mainLanguage
property to payload.
Implement patching on save payload.