@bigbinary/neeto-redirect-urls-frontend
v2.2.1
Published
A repo acts as the source of truth for the new nano's structure, configs, data etc.
Downloads
488
Readme
neeto-redirect-urls-nano-nano
The neeto-redirect-urls-nano-nano
acts as the source of truth for the new nano's structure,
configs, data etc.
Contents
Development with Host Application
Engine
Installation
Add this line to your application's Gemfile:
source "NEETO_GEM_SERVER_URL" do # ..existing gems gem 'neeto-redirect-urls-engine' end
And then execute:
bundle install
Add this line to your application's
config/routes.rb
filemount NeetoRedirectUrlsEngine::Engine => "/neeto_redirect_urls_engine"
Add required migrations in the
db/migrate
folder. Run the following commands to copy the migrations from the engine to the host application.bundle exec rails neeto_redirect_urls_engine:install:migrations bundle exec rails db:migrate
Usage
Replace NeetoRedirectUrlsNanoNano with your project name
Create a
script.rb
file in the project root and paste the script from the following file.Run the file using the following command:
ruby script.rb
Notes ⚠️
- Don't commit this file.
- Project name should be given in PascalCase.
Frontend package
Installation
Add the
neeto-redirect-urls-frontend
package to thepackage.json
yarn add @bigbinary/neeto-redirect-urls-frontend
Instructions for development
Check the Frontend package development guide for step-by-step instructions to develop the frontend package.
Usage
Import
WelcomeScreen
component from "@bigbinary/neeto-redirect-urls-frontend"import React from "react"; import { WelcomeScreen } from "@bigbinary/neeto-redirect-urls-frontend"; const App = () => <WelcomeScreen />; export default App;
Instructions for Publishing
Consult the building and releasing packages guide for details on how to publish.