Skip to content

Commit

Permalink
Merge pull request #330 from hyper63/twilson63/chore-test-nano-upgrad…
Browse files Browse the repository at this point in the history
…e-329

chore update nano with latest app-opine package and changed hyper #329
  • Loading branch information
twilson63 committed Sep 22, 2021
2 parents daf1f7d + aaff9b5 commit dd1a9c2
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 47 deletions.
57 changes: 27 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<p align="center">
<a href="https://www.hyper63.com">
<img alt="Hyper63" src="hyper63-logo.png" width="60" />
<a href="https://www.hyper.io">
<img alt="Hyper" src="hyper63-logo.png" width="60" />
</a>
</p>

<h1 align="center">
hyper63
hyper
</h1>

<p align="center">
A service framework making development productive and fun.
For more information see <a href="https://youtu.be/i-QLw7VCCMw">Why hyper63</a>
One API, many services...
</p>

<p align="center">
<a href="https://docs.hyper.io/">Docs</a>
<span> · </span>
<a href="https://github.com/hyper63/hyper63/discussions">Discussions</a>
<a href="https://github.com/hyper63/hyper/discussions">Discussions</a>
<span> · </span>
<a href="https://github.com/hyper63/hyper63/issues">Issues</a>
<a href="https://github.com/hyper63/hyper/issues">Issues</a>
<span> · </span>
<a href="https://docs.hyper.io/changelog">Changelog</a>
</p>
Expand All @@ -27,59 +26,57 @@

👋 Hey 👋

Welcome to ⚡hyper63 open source project, above is plenty of links that can give
you the why and what of hyper63, check them out! Also, if you are a hands on
kind of developer, try out hyper63 using our playground and gitpod. You don't
Welcome to ⚡hyper open source project, above is plenty of links that can give
you the why and what of hyper, check them out! Also, if you are a hands on
kind of developer, try out hyper using our playground and gitpod. You don't
have to install anything to kick the tires ⚙️.

## Status

- [x] Development
- [ ] Alpha
- [x] Alpha
- [ ] Beta
- [ ] v1.0

## 🧪 Try hyper63 using https://play.hyper63.com
## 🧪 Try hyper

You can take a 🎫 tour of the api starting here https://github.com/hyper63/tour

or watch a video here https://youtu.be/J75hYi6Gqgc

## Running Locally

To run hyper63 on your local machine in your terminal type:

> NOTE: make sure you have nodejs v14+ installed - https://nodejs.org
To run hyper on your local machine in your terminal type:

```
npx @hyper63/x
curl -O https://hyperland.s3.amazonaws.com/hyper
chmod +x hyper
```

> This command will run a hyper63 service on PORT `6363` and store data in
> `${HOME}/.hyper63` > [Ctrl/Cmd] - C will stop the service.
> This command will run a hyper service on PORT `6363` and store data in
> `/tmp` directory
> [Ctrl/Cmd] - C will stop the service.
This `nano` version of hyper63 implements the following ports and adapters:
This `nano` version of hyper implements the following ports and adapters:

- DATA - @hyper63/adapter-pouchdb
- CACHE - @hyper63/adapter-memory
- STORAGE - @hyper63/adapter-fs
- SEARCH - @hyper63/adapter-minisearch (in memory)
- DATA - hyper-adapter-dndb
- CACHE - hyper-adapter-sqlite
- STORAGE - hyper-adapter-fs
- SEARCH - hyper-adapter-minisearch

## Documentation

For more information about hyper63 go to our documentation site. https://docs.hyper.io if you are unable to find the information you are looking for, post a question in our discussions forum. https://github.com/hyper63/hyper63/discussions
For more information about hyper63 go to our documentation site. https://docs.hyper.io if you are unable to find the information you are looking for, post a question in our discussions forum. https://github.com/hyper63/hyper/discussions

## Contributions

See **[Contributing to hyper](https://docs.hyper.io/contributing-to-hyper)** and be sure to check out the **[project roadmap](https://github.com/hyper63/hyper63/projects/1)**.
See **[Contributing to hyper](https://docs.hyper.io/contributing-to-hyper)** and be sure to check out the **[project roadmap](https://github.com/hyper63/hyper/projects/1)**.

## Developer Setup

```
yarn
cd images/dev
yarn dev
```
Fork this repo and use gitpod!

[Gitpod](https://gitpod.io)

## Thank you

Expand Down
2 changes: 1 addition & 1 deletion images/nano/deps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as hyper } from "https://x.nest.land/[email protected]/mod.js";
export { default as app } from "https://x.nest.land/[email protected].4/mod.js";
export { default as app } from "https://x.nest.land/[email protected].5/mod.js";
//export { default as app } from "../../packages/app-opine/mod.js";

// adapters
Expand Down
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
{
"name": "@hyper63/monorepo",
"name": "hyper/monorepo",
"version": "1.0.0",
"private": true,
"description": "service gateway",
"repository": "[email protected]:hyper63/hyper63.git",
"description": "one api, many services...",
"repository": "[email protected]:hyper63/hyper.git",
"license": "MIT",
"author": "Tom Wilson <[email protected]>",
"workspaces": [
"images/dev",
"images/couchdb",
"images/micro",
"images/test",
"launcher"
],
"author": "hyper <[email protected]>",
"scripts": {
"prepare": "husky install"
},
Expand All @@ -22,4 +15,4 @@
"husky": "^6.0.0",
"lint-staged": "^11.0.0"
}
}
}
5 changes: 2 additions & 3 deletions packages/app-opine/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export function hyperRouter(services) {

app.get("/", (_req, res) => {
res.send({
name: "hyper63",
version: "unstable",
name: "hyper",
version: "1.0-alpha",
services: Object
.keys(services)
.filter((k) => k !== "events")
Expand All @@ -124,7 +124,6 @@ export function hyperRouter(services) {
});
});

// TODO: Tyler. Add a favicon?
app.get("/favicon.ico", (_req, res) => res.sendStatus(204));

// All of these args need to be specified, or it won't be invoked on error
Expand Down
2 changes: 1 addition & 1 deletion packages/app-opine/test/mod_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Deno.test("GET /", async () => {
.get("/")
.expect(200);

assertEquals(res.body.name, "hyper63");
assertEquals(res.body.name, "hyper");
});

Deno.test("GET /foobarbaz", async () => {
Expand Down

0 comments on commit dd1a9c2

Please sign in to comment.