
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Command line interface for creating Forge apps, which are Rails-based applications that come with a host of features for content management, rapid application development, and improved scaffold generation.
Although the end result of this gem is the creation of a Rails 4 application that you can certainly use as the basis for a new web application, this gem itself is still alpha quality and is undergoing heavy development. You can, however, create production-ready applications with it (and we do all the time). Documentation is also greatly lacking at this point.
Ruby 1.9.3 or higher. Forge is best at creating Rails 4 applications using Ruby 2.0.
gem install forge-cli
To create a new Forge site:
forge new APP_NAME LIST,OF,MODULES
For example:
forge new app banners,dispatches,ecommerce,events,galleries,posts,subscribers,videos
The gem will display next steps once you've created the application.
To install a module into an existing application use:
forge install MODULE_NAME
You can see a list of available modules by running:
forge list
Forge comes with an advanced scaffold generation system that makes it extremely simple to create new, content-managed entities in the administration panel.
To use the scaffold generator, run:
rails generate forge:scaffold MODEL_NAME LIST_OF_ATTRIBUTES_IN_STANDARD_RAILS_FORMAT
For example:
rails generate forge:scaffold vehicle title:string description:text image_file_name:string image_file_size:integer image_content_type:string list_order:integer publish_on:timestamp
As well as generating standard text fields as per Rails' normal behaviour, the scaffolder understands the following:
ATTRIBUTE_NAME:timestamp
(generates a calendar picker with a time field)title:string
(generates a large text field at the top of the form for the title)ATTRIBUTE_file_name:string, ATTRIBUTE_file_size:integer, ATTRIBUTE_content_type:string
(generates Paperclip-styled attachments that hook into the Asset Library)list_order:integer
(makes the list of items in Forge reorderable using drag & drop)published:boolean
(creates a 'Published' selector that is only accessible by users with the Admin or Super Admin role)You can also generate scaffolds for "small" entities, such as post categories, that have a streamlined interface as follows:
rails generate forge:scaffold_small MODEL_NAME LIST_OF_ATTRIBUTES_IN_STANDARD_RAILS_FORMAT
For either generator it is highly recommended that you include an attribute called "title" as it is relied on in the list views. If you don't wish to use "title" you can edit the generated views. This will likely be more customizable in the future.
Contributions are welcome. Right now the process of contributing is as follows:
bin/forge new testapp banners,dispatches
app/controllers/application_controller.rb
in your new app, you would copy that into the gem's lib/forge/app/controllers
folder.(The MIT License)
Copyright (c) 2013 factor[e] design initiative
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that forge-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.