Skip to content

Commit

Permalink
feat(cli): Initial Feathers v5 CLI and Pinion generator (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored Jun 14, 2022
1 parent cb93bb9 commit 7f59ae7
Show file tree
Hide file tree
Showing 64 changed files with 4,257 additions and 1,083 deletions.
26 changes: 0 additions & 26 deletions _templates/package/new/README.md.t

This file was deleted.

12 changes: 0 additions & 12 deletions _templates/package/new/index.test.ts.t

This file was deleted.

7 changes: 0 additions & 7 deletions _templates/package/new/index.ts.t

This file was deleted.

65 changes: 0 additions & 65 deletions _templates/package/new/package.json.t

This file was deleted.

9 changes: 9 additions & 0 deletions app/config/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"host": "localhost",
"port": 3030,
"public": "./public/",
"paginate": {
"default": 10,
"max": 50
}
}
3 changes: 3 additions & 0 deletions app/config/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"port": 8998
}
61 changes: 61 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "app",
"description": "",
"version": "0.0.0",
"homepage": "",
"private": true,
"keywords": [
"feathers"
],
"author": {},
"contributors": [],
"bugs": {},
"engines": {
"node": ">= 16.13.0"
},
"feathers": {
"language": "ts",
"packager": "npm",
"database": "sequelize",
"framework": "koa",
"transports": [
"rest",
"websockets"
]
},
"directories": {
"lib": "src",
"test": "test"
},
"main": "src/",
"dependencies": {
"@feathersjs/authentication": "^5.0.0-pre.16",
"@feathersjs/configuration": "^5.0.0-pre.16",
"@feathersjs/errors": "^5.0.0-pre.16",
"@feathersjs/feathers": "^5.0.0-pre.16",
"@feathersjs/koa": "^5.0.0-pre.16",
"@feathersjs/schema": "^5.0.0-pre.16",
"@feathersjs/socketio": "^5.0.0-pre.16",
"@feathersjs/transport-commons": "^5.0.0-pre.16",
"feathers-sequelize": "^6.3.2",
"koa-static": "^5.0.0",
"winston": "^3.6.0"
},
"devDependencies": {
"@types/koa-static": "^4.0.2",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.23",
"axios": "^0.25.0",
"mocha": "^9.2.2",
"nodemon": "^2.0.15",
"shx": "^0.3.4",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
},
"scripts": {
"dev": "nodemon -x ts-node src/index.ts",
"compile": "shx rm -rf lib/ && tsc",
"start": "npm run compile && node lib/",
"test": "mocha test/ --require ts-node/register --recursive --extension .ts --exit"
}
}
77 changes: 77 additions & 0 deletions app/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>app</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html, body {
font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif';
font-weight: 400;
font-size: 16px;
color: #2c3e50;
}

.center-text {
text-align: center;
}

main {
margin-top: 100px;
padding: 20px;
}

img.logo {
display: block;
margin: 0 auto;
max-width: 100%;
margin-bottom: 30px;
}

h2 {
font-size: 2em;
font-weight: 100;
}

footer {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 20px;
}

footer p {
font-weight: 300;
font-size: 1.0em;
}

a {
color: #3cf;
text-decoration: none;
}

a:hover,
a:focus {
color: #3cf;
}
</style>
</head>
<body>
<main class="container">
<h1>app</h1>

<img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk4AAABkCAMAAABHL0++AAADAFBMVEUAAAD///+AgIBVVVVAQEAzMzNVVVVJSUlAQEA5OTkzMzNGRkZAQEA7Ozs3NzczMzNAQEA8PDw5OTk2NjYzMzM9PT06Ojo3Nzc1NTUzMzM7Ozs5OTk3Nzc1NTUzMzM6Ojo4ODg2NjY1NTUzMzM5OTk3Nzc2NjY0NDQzMzM4ODg3Nzc1NTU0NDQzMzM3Nzc2NjY1NTU0NDQzMzM3Nzc2NjY1NTU0NDQzMzM3Nzc2NjY1NTU0NDQzMz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TkSuQmCC" alt="Feathers Logo">

<footer>
<p class="center-text">For more information on Feathers see <a href="https://docs.feathersjs.com" title="Feathers Documentation" target="blank">docs.feathersjs.com</a>.</p>
</footer>
</main>
</body>
</html>
43 changes: 43 additions & 0 deletions app/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# app

>
## About

This project uses [Feathers](http://feathersjs.com). An open source web framework for building APIs and real-time applications.

## Getting Started

1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
2. Install your dependencies

```
cd path/to/app
npm install
```
3. Start your app
```
npm start
```
## Testing
Run `npm test` and all your tests in the `test/` directory will be run.
## Scaffolding
Feathers has a powerful command line interface. Here are a few things it can do:
```
$ npm install -g @feathersjs/cli # Install Feathers CLI

$ feathers generate service # Generate a new Service
$ feathers generate hook # Generate a new Hook
$ feathers help # Show all commands
```
## Help
For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).
30 changes: 30 additions & 0 deletions app/src/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import serveStatic from 'koa-static'
import { feathers } from '@feathersjs/feathers'
import configuration from '@feathersjs/configuration'
import { koa, rest, bodyParser, errorHandler, parseAuthentication } from '@feathersjs/koa'
import socketio from '@feathersjs/socketio'

import services from './services'
import channels from './channels'
import { logErrorHook } from './logger'
import { Application } from './declarations'

const app: Application = koa(feathers())

// Load our app configuration (see config/ folder)
app.configure(configuration())

// Set up Koa middleware
app.use(serveStatic(app.get('public')))
app.use(errorHandler())
app.use(parseAuthentication())
app.use(bodyParser())

// Configure services and transports
app.configure(rest())
app.configure(socketio())
app.configure(services)
app.configure(channels)
app.hooks([ logErrorHook ])

export { app }
Loading

0 comments on commit 7f59ae7

Please # to comment.