Skip to content

A CLI tool to create APIs in multiple languages with multiple integrations in just seconds.

License

Notifications You must be signed in to change notification settings

kunal00000/create-krest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create-KREST (Create Simple APIs in seconds)

Create-KREST is a command-line tool that helps you quickly scaffold a simple REST API project. Whether you're starting a new project or prototyping an idea, Create-KREST provides you with the essentials to kickstart your development process.

Installation & Usage

To use Create-KREST, you need to have Node.js installed. You can install and run the package via npm using the following command:

$ npm create krest@latest

Alternate way

  • To direclty install and use Create-KREST run
$ npx create-krest@latest

Quick tutorial

krest_hzQAgueS.mp4

Questions

During the setup process, Create-KREST will ask you a series of questions to configure your API project:

Select a language:

  • Javascript
  • Typescript

Select a variant to create API:

  • Basic CRUD
  • CRUD + JWT Auth
  • CRUD + MongoDB Database
  • CRUD + MongoDB Database + JWT Auth

Current Features

  • Sample API endpoints to jumpstart your development.
  • Easily integrate JWT (JSON Web Token) authentication middleware for secure API access.
  • MongoDB integration for easy database connectivity.
  • Customizable templates for different features to suit your project's needs.

Project Structure

The project structure generated by Create-KREST will include the following directories and files:

server/
├── controllers/
│   └── todo.controllers.js
│
├── db/
│   └── index.js
│
├── middlewares/
│   └── auth.middlewares.js
│
├── models/
│   └── user.models.js
│
├── routes/
│   └── todo.routes.js
│
├── config.js                                 # Configuration file
├── index.js
├── .env                                      # Set environment variables(if any)
├── .gitignore
└── package.json

Contributing

Contributions are welcome! If you find any bugs or have suggestions for new features, please open an issue.

License

This project is licensed under the MIT License.

Acknowledgments

Create-KREST is inspired by the need for a simple and efficient way to start building REST APIs. Special thanks to the developers of "commander" and "inquirer" for their excellent packages.

Thank you for using Create-KREST! If you encounter any issues or have any questions, please don't hesitate to reach out. Happy coding!

About

A CLI tool to create APIs in multiple languages with multiple integrations in just seconds.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published