Language | IETF Language Tag | Maintainer | Link |
---|---|---|---|
English | en |
Trails Team | doc/en |
French | fr |
@jaumard @maissani | doc/fr |
trailsjs / doc Goto Github PK
View Code? Open in Web Editor NEW:books: Trails.js Documentation
License: Other
:books: Trails.js Documentation
License: Other
Language | IETF Language Tag | Maintainer | Link |
---|---|---|---|
English | en |
Trails Team | doc/en |
French | fr |
@jaumard @maissani | doc/fr |
Add a deployment section with :
Powershell output
yo : The term 'yo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
I see that I must configure my view engine in config/views.js. What is that configuration object supposed to look like?
Also where do my html (or ejs or jade) templates go? What is the convention for the file path?
It would be nice to have the possibility to have off line documentation. I use Dash to sync all my documentations off line (https://kapeli.com/docsets) there a lot of doc like npm or express in it. Can be cool to have Trails also.
Any people can contribute on docs.
(This issue will be updated each time something is finish or created)
The following list describe what's our needs for the V1.0 of the docs:
I want to be able to publish these docs to NPM so I can build out the documentation section on trailsjs/trailsjs.io and have it mirror these docs.
In Express, one can use app.use
and express.static
to bind the absolute directory path such as user/home/nodeproject/public to a shortcut: /public, so that html can locate files using a relative path.
For an example expressApp.use('/public', require('express').static(process.cwd() + '/public'));
With this I should be able to to display an image using a reative path in my html file, <img src="/public/img/goat.jpg" alt="chilling with a goat">
. In the docs, can you show where app.use
and express.static
should be used ? I tried the init method on the config/web.js file, but it doesn't work.
https://github.com/trailsjs/doc/blob/1a6f1da6819e0c88e999fdbf60f936d7e766db29/en/extend/README.md contains links to files that don't exist.
Also, this is broken: 1cd94de#diff-4e10da212faac65d4e7c2a51398fee32R31
https://trailsjs.io/doc/en/build/service.html#implement-reportcontroller
line: this.services.ReportService.getLatest(cik)
returns: undefined error which stems from this.services
TypeError: Uncaught error: Cannot read property 'ReportService' of undefined
correction: this.app.services
Am I missing some config to avoid this error?
/**
* Views Configuration
* (app.config.views)
*
* @see http://trailsjs.io/doc/config/views.js
*/
const handlebars = require('handlebars')
module.exports = {
engine: handlebars
}
Few items:
• Need View docs for context/info about defaults and purpose
• Small typo to be fixed: /views.js
to be /views
• Info about potential conflicts between third party views included in onPluginsLoaded
in web.js
and management therein
So, I wrote a Docker configuration for Trails.js, including information on scaling with Docker. I would like to migrate this configuration and documentation into Trails.js. Where exactly would this fit in the main Trails.js documentation outline? My best guess right now is under Deploy -> Providers -> Docker.
Below are references to some of the discussions, configuration, and documentation about this subject.
https://gitter.im/trailsjs/trails?at=5996633ba7b406262d9e5a76
https://github.com/jamrizzi/trailblazer/blob/master/Dockerfile
https://github.com/jamrizzi/trailblazer/blob/master/docker-compose.yml
https://github.com/jamrizzi/trailblazer#clustering
Create a new directory before running yo trails. This would prevent the new app from being created in the home folder.
I am working to get the mongoose trailpack setup and have an error about Error: Migrate must be configured to either "create" or "drop"
where I believe I need to configure a Store. It would be nice to have so documentation pointing to a file path in the project where I must configure my Stores. Thank you!
Begin your Journey by clicking Start!
resolves to http://beta.trailsjs.io/en/start when only /start exists.
Any people can contribute on docs.
(This issue will be updated each time something is finish or created)
The following list describe what's our needs for the V1.0 of the docs:
One PR for each features because of unobstrusive contributing and fastest releasing docs.
Double check, you have to Assignee your PR to someone, docs has to be always double or sometimes triple check.
The developper is currently working on it, realeases has to pass the double verification to be merged.
When docs are merged and wait for beeing reopened cause something could be missing.
PR are red because Travis config is wrong, since there only documentation maybe it's better to disable travis...
Currently, route definitions look as follows:
{
method: [ 'GET' ],
path: '/api/v1/default/info',
handler: 'DefaultController.info'
}
Which is a it cumbersome, especially if you need to define lots of routes. Would be nice to be able to have a more succinct syntax, perhaps something like so?
Router
.post( '/user', UserCtl.create)
.put( '/user', auth.isAuthenticated(), UserCtl.update)
Just an example, but you get my point I hope.
Also nested routes would be really nice, mostly for convenience, so stuff like this can be done:
{
method: [ 'GET' ], // this here would/could be optional
path: '/api/v1/default',
handler: 'DefaultController.info' // so would this guy
subRoutes: [{
method: [ 'GET' ],
path: '/info', // this then becomes /api/v1/default
handler: 'DefaultController.info'
}]
}
Also just an example, but I hope the general idea comes through.
That should be all, I'll add updates if anything else comes to mind
:)
We're in 2.0 but we still don't have a complete documentation for improving the onboarding experience for the users and solving common issues
You plan to release somethings is the next months?
In case, there's anything I can help with?
┌───────────────────────────────────────────┐
│ Your Trails Application has been created! │
│ --- │
│ To start your application, run: npm start │
└───────────────────────────────────────────┘
'git' is not recognized as an internal or external command,
operable program or batch file.
'git' is not recognized as an internal or external command,
operable program or batch file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.