Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/takeshape/slug-field-migration


https://github.com/takeshape/slug-field-migration

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# TakeShape Slug Field Migration

This project is intended to be used to migrate data from the Title field to the Slug field, turning it into a slug value.

## Setup

1. Clone this repository.
2. Run `npm i` to install dependencies.

## Preparation

1. Go to your TakeShape project.
2. In the dots menu select API Keys.
3. Create a new key with Read/Write permissions.
4. Save your key.
5. Notice the project id from the endpoint.
Looks like this:
```
https://api.takeshape.io/project//v3/graphql
```
6. Edit the shape you need migrated.
7. Create a new "Single Line" content type and call it "Slug".

## Usage instructions

Once you are ready to migrate, execute the following command:
```
TS_API_KEY="" TS_PROJECT_ID="" TS_SHAPE="Shape" node slugify
```
All your data from the Title field is now migrated into the Slug field in slug format.