teamspaces / web

Web & API – Spaces is knowledge management for teams.
0 stars 0 forks source link

API & Landing

Assets

How it works

Building

docker-compose run api gulp

Form Objects using Inflorm

Documentation: https://github.com/influitive/inflorm

class ParentForm
  include Inflorm

  attribute :name,  String
  attribute :title, String

  attribute :child, ChildForm      # has_one association
  attribute :pets,  Array[PetForm] # has_many association

  validates :name,  presence: true
  validates :child, associated: true
  validates :pets,  associated: true
end

class ChildForm
  include Inflorm

  attribute :age, Integer

  validates :age, presence: true
end

class PetForm
  include Inflorm

  attribute :name,    String
  attribute :species, String

  validates :name,    presence: true
  validates :species, presence: true
end

Working with Slack

Access the app here: https://api.slack.com/apps

Default configuration for all allowed URLs to sign in is:

http://localhost:5510/users/auth/slack/callback
http://127.0.0.1.nip.io:5510/users/auth/slack/callback
http://192.168.99.100:5510/users/auth/slack/callback
http://192.168.99.101:5510/users/auth/slack/callback
http://192.168.99.100.nip.io:5510/users/auth/slack/callback
http://192.168.99.101.nip.io:5510/users/auth/slack/callback

Other

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover: