The neeto-wheel-nano
acts as the source of truth for the new nano's structure,
configs, data etc.
-
Add this line to your application's Gemfile:
source "NEETO_GEM_SERVER_URL" do # ..existing gems gem 'neeto-wheel-engine' end
-
And then execute:
bundle install
-
Add this line to your application's
config/routes.rb
filemount NeetoWheelEngine::Engine => "/neeto_wheel_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_wheel_engine:install:migrations bundle exec rails db:migrate
-
Replace NeetoWheelNano 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.
-
Add the
neeto-wheel-frontend
package to thepackage.json
yarn add @bigbinary/neeto-wheel-frontend
Check the Frontend package development guide for step-by-step instructions to develop the frontend package.
-
Import
WelcomeScreen
component from "@bigbinary/neeto-wheel-frontend"import React from "react"; import { WelcomeScreen } from "@bigbinary/neeto-wheel-frontend"; const App = () => <WelcomeScreen />; export default App;
Consult the building and releasing packages guide for details on how to publish.