Code Monkey home page Code Monkey logo

api-cli's Introduction

api-cli ๐Ÿ’ป

GitHub release

A CLI tool Which writes all the boiler-plate API and install Dependencies Express body-parser and Selected ORM which can be selected from the list.

ORM SUPPORT

  • Mongoose โœ”๏ธ
  • TypeORM (coming soon) โš ๏ธ

Installation

Either through cloning with git or by using npm (the recommended way):

npm install -g @prkhrv/api-cli

And api-cli will be installed globally to your system path.

Usage

api-cli requires ORM you want to use and it also initializes package.json and installs all the basic dependecies for the Database/ORM.

$ api-cli --install

? Please choose which database ORM to use (Use arrow keys)
โฏ mongoose 
? Initialize npm? (y/N) 

 _ __  _ __| | _| |__  _ ____   __
| '_ \| '__| |/ / '_ \| '__\ \ / /
| |_) | |  |   <| | | | |   \ V / 
| .__/|_|  |_|\_\_| |_|_|    \_/  
|_|                               
 โœ” Greetings
 โœ” Initialize npm
 โœ” Copy project files
 โœ” Install dependencies
DONE Project ready


When all the Processes are Completed try running server

node index

Config

Mongoose open ./config/database.config.js and simply add Your MongoDB connection URL.

module.exports = {
   url: 'mongodb://localhost:27017/TestDB' //YOUR LINK HERE
}

License

MIT http://rem.mit-license.org

Contact

PRAKHAR VARSHNEY

api-cli's People

Contributors

prkhrv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

api-cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.