1.1.12 ā€¢ Published 1 month ago

codehooks v1.1.12

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

Codehooks CLI

Codehooks.io is an easy to use Backend for serverless JavaScript, NoSQL Database and much more.

Some highlights:

  • Instant deployment with automatic NoSQL REST API
  • JavaScript ES6/Typescript
  • Easy development of REST APIs and GraphQL
  • NoSQL database with MongoDB-ish query API
  • Simple key/value database with Redis-like API
  • Background CRON-like Jobs
  • Persistent Worker Queues
  • Filesystem
  • Secure access with API tokens or Auth0.com JWT / JWKS

It's a perfect companion for modern web/API centric development.

The CLI is the main tool for developers to compile, deploy and monitor code.

Check out the CLI documentation at: https://codehooks.io/docs/cli Check out the developer documentation at: https://codehooks.io/docs

Quick start

Install & sign up / login

% npm install codehooks -g

Sign up and log in with your Github or Google account.

% codehooks login github
If browser does not open automatically, please paste in this URL in a new browser tab/window:
https://account.codehooks.io/authenticate/github/xxxxx

šŸ‘ Authentication complete, <YOUR NAME>!
You are now ready to use the Codehooks CLI. Please close the browser window.

Create a new project / data store

% codehooks create myproject 
Successfully initialized new project 'myproject-xxxx' in your account
Added new space 'dev' and set it to active
Created example file: /Users/<YOU>/<YOUR PATH>/myproject/index.js

% cd myproject

Create a JavaScript app

Tip: Check the auto generated example in the index.js file.

/*
* Auto generated Codehooks (c) example
* Install: npm i codehooks-js
*/
import {app} from 'codehooks-js'

// test route for https://<PROJECTID>.api.codehooks.io/dev/
app.get('/', (req, res) => {
  res.send('CRUD server ready')
})

// Use Crudlify to create a REST API for any collection
app.crudlify()

// bind to serverless runtime
export default app.init();

Add dependencies

Add npm packages before compile and deployment.

npm i codehooks-js

Deploy project

% coho deploy 
Deploying to Project: myproject-xxxx Space: dev
Deployed Codehook successfully

REST endpoint when deployed:
You API: https://myproject-xxxx.api.codehooks.io/dev/

More info at: https://codehooks.io

1.1.12

1 month ago

1.1.11

2 months ago

1.1.10

4 months ago

1.1.9

5 months ago

1.0.19

10 months ago

1.0.18

10 months ago

1.0.17

10 months ago

1.0.22

9 months ago

1.0.21

10 months ago

1.0.20

10 months ago

1.0.26

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.27

8 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.0.16

10 months ago

1.0.15

12 months ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

2 years ago

1.0.3

1 year ago

0.7.2

2 years ago

0.6.6

2 years ago

0.7.1

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.7.0

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.6.3

2 years ago

0.5.4

2 years ago

0.6.2

2 years ago

0.5.3

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.0

2 years ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.3

2 years ago

0.1.15

2 years ago

0.2.0

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.0.1

3 years ago