New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

angular-2-rails-starterkit

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-2-rails-starterkit

qucki start with Angular 2 framework and rails server, with deployment to Heroku

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

Angular 2 Rails Starterkit

quick start with angular 2 and rails api application

Installtion

npm install angular-2-rails-starterkit -g
for linux sudo npm install angular-2-rails-starterkit -g

Quick Start

  • Install Angular-CLI npm install -g @angular/cli
    for linux sudo npm install -g @angular/cli

  • Generate Rails project
    rails new PROJECT_NEME --api

  • Install gems
    Add to Gemfile

    gem 'rack-rewrite'
    gem 'rack-cors'
    gem 'foreman' to group :development
    then run bundle install

  • Config config.ru in root directory a file should look like this example

    require_relative 'config/environment'
    
      use Rack::Rewrite do
      	rewrite %r{^(?!.*(api|\.)).*$}, '/index.html'
      end
    
      run Rails.application
    
  • Inside project folder run starterkit
    starterkit -g

  • Strat Server
    bundle exec foreman start -f Procfile.dev

  • Generate Production
    ng build --prod

LINK TO NPM PACKAGE

Keywords

Angulr2

FAQs

Package last updated on 27 Jun 2017

Did you know?

Socket

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.

Install

Related posts