An Ionic Sassy Seed based on an Airtable.com base.
Full Airtable.com Roadmap
For a full project roadmap, use:
Includes:
- Roadmap - Project Phases/Budget
- User Stories
- Actors
- Lexicon - API
- Entities - things
- App States
- Settings
Or, for an empty starting project template, use:
Other Airtable.com Starter Templates:
- IMDB like Template
- Simple Company Template
- Piano Service Template
- Simple Task Manager
- Party Games Template
- Homework Plus Template
Create an Airtable.com Base
Airtable.com is by far the best tool I've found for describing a Single Source of Truth. It has all the flexibility of a Spreadsheet + the formal structure of a Database.
There are a list of starter templates above. You can either pick one of the example templates, or start with an Empty template and build your own.
-
Generate an API key on your Airtable.com account
- If you have not already created an API Key - this is how to do it.
- From the Airtable.com dashboard, click on your account icon in the top right corner of the screen and choose "Account"
- Scroll down and click "Generate Key" to create an API key
-
Copy API Key from Account Page
-
Make sure you have the latest SSoT.me CLI tools installed.
-
Configure Airtable.com API Key in the SSoT.me CLI.
- This key is passed along with any requests sent to the airtable account tools.
- At a command line, type
>ssotme -setAccountAPIKey airtable=YOUR_AIRTABLE_API_KEY
-
Pick an Airtable Template from above to start with
- Open one of the airtables above and Click copy base in the top right corner to create a copy in your own Airtable.com account.
-
Customize the Airtable
- Just follow the patterns established. Add as many sheets of data as you want, and simply list each sheet on the "Entities" tab. That's the only "rule".
-
Copy BaseID
- Open the API Documentation from the Help Menu in the top right corner.
- https://api.airtable.com/v0/{THIS_IS_THE_BASE_ID}/TableName
- The
Base ID
will startapp...
-
Fork and Clone this repo
- Click Fork in the top right corner of Github
-
Rename the copy created in your account.
- Rename the repo on the settings tab.
-
Clone the repo
- Clone the repo to a folder on your local computer.
-
Add Base ID to the SSoT.me Project File
- Update the "SSoTmeProject.json" file with the Base ID you copied above
- This is the line in the original Seed: (~line 100)
"CommandLine": "airtable/airtable-to-xml -p baseId=BASE_ID_HERE"
-
Run the
ssotme -init
- Open a powershell prompt in the repo root folder, and type
>ssotme -init
.
The name of the project will be inferred from the name of the folder.
-
NOTE - if the
Base ID
ORAPI KEY
is wrong - it will be reported right away in the init process as a 404 error on Airtable. -
Also - if the
AirtableName
values for any enties included do not match a tab in your Airtable, the SSoT.me CLI will complain and tell you which entity does not match.
- Open a powershell prompt in the repo root folder, and type
-
Download Packages & Build Ionic Mobile App
- Execute
/ionic-ts-sidemenu/>prepare-ionic.bat
to start the ionic project downloading npm packages and building the mobile app.
- Execute
-
Create Sql Server DB
- Run the
/SqlServer/UpdateSchema.sql
to create (or update the schema for) a SQL Server Database.
- Run the
-
Open Visual Studio
- Open the Visual Studio Solution (.sln) file that will be in the project root folder.
-
Include additional project files
-
In visual studio open
/Windows/CoreLibrary/SassyMQ/
and include the 3.cs
files which are not automatically included. -
In the visual studio project, open
/MVCRestAPI/Controllers/
and include theapi/*Controller.cs
rest api controllers which are not automatically included in the project when generated, and must be added manually.
-
-
Make the
MVCRestAPI
the startup project in the solution. -
Press F5 to run the project. This will start the REST API.
-
in powershell, run
ionic-ts-sidemenu/>ionic serve
to start the Ionic Mobile app.
"Spreadsheet" to mobile app in less than 10 minutes.