- Node: (20.8.0)
npx @theturtle/folder
git clone https://github.com/r89shi/theturtle-folder.git
npm install
OR
yarn install
OR
pnpm install
npm run build
OR
yarn build
OR
pnpm build
npm start
OR
yarn start
OR
pnpm start
npm run dev
OR
yarn dev
OR
pnpm dev
Create a JSON
file into the database
folder: src/database/fileName.json
Open the JSON
file and insert the code:
{
"root": []
}
root
is required for any JSON
file. To create a new folder:
{
"root": [
{
"name": "First folder name",
"sub": []
}
]
}
name : Folder name.
sub : Sub directories for this folder.
To create a sub folders, insert into sub
the same structure.
Example:
{
"root": [
{
"name": "First folder name",
"sub": [
{
"name": "Sub folder name",
"sub": []
},
{
"name": "Another sub folder name",
"sub": []
}
]
}
]
}