1.0.68 • Published 3 years ago

api-make v1.0.68

Weekly downloads
25
License
MIT
Repository
github
Last release
3 years ago

api-make

oclif Version Downloads/week License

this is a 2-day old WIP, and may not work for you :) please report bugs on the github. I wasn't expecting any downloads from people other than my students! :D

api-make is a command-line tool that helps you create APIs quickly, with helpful starter code in each route, controller and model. api-make is designed to be beginner friendly, without overly abstract code, so you can see all your routes in the index.js. It also sets up your connection to your mongoDB atlas cluster.


basic steps

initialise an api with login & auth routes called "myProject":

npx api-make auth-init myProject

OR initialise an api without auth routes called "myProject":

npx api-make init myProject

OR initialise an api called "myProject" with a bunch of predefined collections for Product, Review and Category:

npx api-make init myProject product review category

go into the new project folder:

cd myProject

generate Group, Event, Message models, routes and controllers just like this!

npx api-make add group event message

experimental features coming next

maybe write some tests

generate a project from YAML

npx api-make YAML <path-to-file>

You can even try to generate a whole project based on a dbdiagram.io link!

npx api-make dbdiagram <url>

1.0.68

3 years ago

1.0.679

3 years ago

1.0.678

3 years ago

1.0.677

3 years ago

1.0.676

3 years ago

1.0.675

3 years ago

1.0.673

3 years ago

1.0.671

3 years ago

1.0.670

3 years ago

1.0.672

3 years ago

1.0.669

3 years ago

1.0.6666

3 years ago

1.0.668

3 years ago

1.0.667

3 years ago

1.0.666

3 years ago

1.0.66

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago