MakeWorks is a platform that helps you find nearby manufacturers
- Web framework: Ruby on Rails
- Database: Postgresql
- Hosting: Heroku
- Assets hosting: AWS
Staging web server:
- Run tests with
rails test
- Run system tests with
rails test:system
- Automatic tests with
bundle exec guard
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?
The App ID and Secret were generated on https://fablabs.io/oauth/applications
If it stops working, it might need to be re-created:
- Redirect URI: https://new.make.works/users/auth/fablabs/callback
- Scopes: user
Blog.content is the old content, from the old website.
The new content uses Action Text and stores it under Blog.content_action
- 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.
What can each user do:
- Can access /admin dashboard
- Edit everything
- Can edit everything in their Region
- Champion is a user but belongs_to Region with a
is_champion
flag
- Submit a new (unverified) company
- Only view most items
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?
- 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
- https://make.works/materials/new
- Add "new" in URL to each to add new tag
To become a 'champion' an admin needs to make you one, via the https://new.make.works/admin/user_regions interface.