#README
- Create a directory within your projects workspace
- cd into that directory
- git init
- Create the application
rails new api -d postgresql -T -J -G --api
-
Adjust your database.yml
-
Create your databases
bin/rails db:create:all
- Install stardust_rails - All of the instructions are on the github page.
Add this line to your application's Gemfile:
gem 'stardust_rails', require: 'stardust'
And then execute:
$ bundle
Mount the engine:
# config/routes.rb
Rails.application.routes.draw do
...
mount Stardust::Engine, at: "/"
...
end
- Create the application using the new ember octane template
ember new web -b @ember/octane-app-blueprint --no-welcome --skip-npm --skip-bower --skip-git
- Install tailwindcss
ember install ember-cli-tailwind
- Setup Pods - Add the following key/value pair to the ENV object in web/config/environment.js
podModulePrefix: "web/ui",
- Install ember-apollo-client
ember install ember-apollo-client
- Configure ember-apollo - Please note, there are additional steps for authentication
In your app's config/environment.js
, configure the URL for the GraphQL API.
let ENV = {
...
apollo: {
apiURL: 'http://localhost:3000',
},
...
}
In your app's ember-cli-build.js
, you can set build time options for broccoli-graphql-filter to keep file extensions in .graphql
files.
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
emberApolloClient: {
keepGraphqlFileExtension: true
}
});
return app.toTree();
};
- https://electronjs.org/apps/graphiql A GUI for editing and testing GraphQL queries and mutations