Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OKNoah/final
Experimental server framework. Moved: https://gitlab.com/NoahGray/final
https://github.com/OKNoah/final
arangodb framework nodejs react server
Last synced: about 1 month ago
JSON representation
Experimental server framework. Moved: https://gitlab.com/NoahGray/final
- Host: GitHub
- URL: https://github.com/OKNoah/final
- Owner: OKNoah
- Created: 2017-12-23T12:05:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T09:36:08.000Z (almost 7 years ago)
- Last Synced: 2024-04-25T01:20:27.341Z (9 months ago)
- Topics: arangodb, framework, nodejs, react, server
- Language: JavaScript
- Homepage: https://gitlab.com/NoahGray/final
- Size: 275 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Final
Master repo for Final-related packages.
* [final-server](packages/final-server) - Package for creating and running apps with the Final framekwork
* [final-arango](packages/final-server) - Decorator for adding database functionality to Final
* [arangolize](packages/arangolize) - The query-builder used in final-arango## Quick intro
[Examples here](packages/final-server/examples)
[Tests here](packages/final-arango/index.test.js)
Simple example:
```js
import Final, { createServer } from 'final-server'
import database from 'final-arango'
import { UserSchema } from './data-model'@database({
collection: 'FinalUser'
})
class User extends Final.Component {
path = '/user/:user?'
schema = UserSchema
uniques = ['email']async get () {
const user = await this.findOne({
where: { name: this.props.params.user }
})return user
}async post () {
const user = await this.save(this.props.body)return user
}
}createServer({
components: [User],
port: process.env.PORT || 3001
})
```See the [final-server](packages/final-server) folder for more.