Skip to content

JessicaGuy/makeworks

 
 

Repository files navigation

MakeWorks is a platform that helps you find nearby manufacturers

Technology and development

  • Web framework: Ruby on Rails
  • Database: Postgresql
  • Hosting: Heroku
  • Assets hosting: AWS

Staging web server:

Development

  • Run tests with rails test
  • Run system tests with rails test:system
  • Automatic tests with bundle exec guard

Import data

rake makeworks:import_all

  • TODO:
  • Get the API key to Login with linkedin
  • A region can use a 'can_signup' flag to control if companies can be submitted to their region?

Login with Fablabs.io

The App ID and Secret were generated on https://fablabs.io/oauth/applications

If it stops working, it might need to be re-created:

Blog content

Blog.content is the old content, from the old website.

The new content uses Action Text and stores it under Blog.content_action

Regions and permissions

  • Companies can belong to 0, 1 or multiple regions.
  • If a company belongs to 1 hidden region, and 1 visible region, the company will be visible.
  • If a company is in no region, it will be visible.
  • If the company is not verified, it will be hidden.

Users and permissions

What can each user do:

Admins

  • Can access /admin dashboard
  • Edit everything

Champion

  • Can edit everything in their Region
  • Champion is a user but belongs_to Region with a is_champion flag

Normal user (logged in)

  • Submit a new (unverified) company

Not logged in user

  • Only view most items

Company Employee roles

Company owner can edit his company and invite other users into the company

When a user creates a company, he becomes an employee and the owner.

There are 3 roles:

  • Owners: can edit everything and give other employees access.
  • Managers: can edit but not add new employees.
  • Normal: nothing?

Making a listing

  • Image max height 500px
  • First uploaded image will be "top image"
  • Always add Region (Organisation) & Country
  • To manually change listings tags for not live listings delete /admin/ out of dashboard URL

Adding new materials, processes, machines, product tags

To become a 'champion' an admin needs to make you one, via the https://new.make.works/admin/user_regions interface.

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 62.1%
  • HTML 33.7%
  • JavaScript 2.3%
  • SCSS 1.9%