https://github.com/mattchewone/marvels-api
Demo Marvels API using FeathersJS
https://github.com/mattchewone/marvels-api
api feathersjs marvel-api
Last synced: 8 months ago
JSON representation
Demo Marvels API using FeathersJS
- Host: GitHub
- URL: https://github.com/mattchewone/marvels-api
- Owner: Mattchewone
- License: mit
- Created: 2017-10-22T21:10:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-22T21:18:50.000Z (over 8 years ago)
- Last Synced: 2025-06-25T21:41:16.239Z (12 months ago)
- Topics: api, feathersjs, marvel-api
- Language: JavaScript
- Size: 47.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Marvels Movies Api
## About
This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications.
This is a demo app to showcase using the `feathers-shallow-populate` hook, using marvels movies as the example data.
```js
// Populate actors
shallowPopulate({
include: {
service: 'actors',
nameAs: 'actors',
keyHere: 'actorIds',
keyThere: 'actorId'
}
}),
// Map personID
mapResultData('actors.personId', 'actors'),
// Populate person from actor
shallowPopulate({
include: {
service: 'persons',
nameAs: 'persons',
keyHere: 'actors',
keyThere: '_id'
}
})
```
## Getting Started
Getting up and running is as easy as 1, 2, 3.
1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
2. Install your dependencies
```
cd path/to/marvels-movies-api; npm install
```
3. Start your app
```
npm start
```
## License
Copyright (c) 2016
Licensed under the [MIT license](LICENSE).