api/books/getters.js
api/books/setters.js
api/index.js
index.server.js
settings.development.json
ui/components/books_list/index.js
ui/layouts/app/index.js
ui/pages/books/index.js
import joystick from '@joystick.js/node';
import api from './api/index.js';
joystick.app({
api,
routes: {
'/books': (req = {}, res = {}) => {
res.render('ui/pages/books/index.js', {
layout: 'ui/layouts/app/index.js',
});
},
'/books/:book_id': (req = {}, res = {}) => {
res.render('ui/pages/book/index.js', {
layout: 'ui/layouts/app/index.js',
});
}
},
});
Terminal
- Starting MongoDB...
- Starting app...
- App running at: http://localhost:2600