Repository navigation
Home
Aman Verma edited this page Jan 18, 2025
·
1 revision
Welcome to the Folder Structure API, a service designed to help you efficiently manage and organize folder structures for your projects. This API simplifies how you define, visualize, and retrieve folder structures for development projects.
- Dynamic Folder Structure Generation: Create and retrieve customized folder structures for your projects.
- API-driven: Interact with the service via RESTful APIs.
- Fast and Scalable: Built with performance and scalability in mind.
- Visualization Support: Visualize folder structures in an organized manner.
The API base URL is:
https://folder-structure-production.up.railway.app/
POST /create
Request Body:
{
"projectName": "MyProject",
"folders": [
{
"name": "src",
"subfolders": [
{ "name": "components" },
{ "name": "services" }
]
},
{ "name": "public" },
{ "name": "tests" }
]
}Response:
{
"message": "Folder structure created successfully",
"data": {
"projectId": "12345",
"structure": {
"src": {
"components": {},
"services": {}
},
"public": {},
"tests": {}
}
}
}GET /get/{projectId}
Response:
{
"projectId": "12345",
"structure": {
"src": {
"components": {},
"services": {}
},
"public": {},
"tests": {}
}
}DELETE /delete/{projectId}
Response:
{
"message": "Folder structure deleted successfully"
}- Node.js or any API testing tool (e.g., Postman, cURL) to interact with the API.
- Internet access to reach the hosted service.
If you want to set up the API locally:
-
Clone the repository:
git clone https://github.com/your-repo/folder-structure-api.git cd folder-structure-api -
Install dependencies:
npm install
-
Start the server:
npm start
-
Access the API locally at:
http://localhost:3000/
The API is deployed using Railway and can be accessed at:
https://folder-structure-production.up.railway.app/
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m "Add some feature" - Push to the branch:
git push origin feature/your-feature-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or support, contact:
- Email: support@folderstructureapi.com
- GitHub Issues: GitHub Issues
Happy coding!