Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takeshape/slug-field-migration
https://github.com/takeshape/slug-field-migration
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/takeshape/slug-field-migration
- Owner: takeshape
- Created: 2021-01-28T18:12:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-02T14:35:27.000Z (almost 4 years ago)
- Last Synced: 2023-03-02T21:26:08.368Z (over 1 year ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.