Methods to create projects
Login into console.makermike.io16.com, check Methods to login into MakerMike if you haven't.
Create a Project
Using the UI
- In the project
console.makermike.io16.comgo to theProjecttable. - Open the create form clicking in the
+button. - Set a value for the field
name. - In the column field
configa configuration template will be displayed automatically.- If you don’t have a configuration, use the template to set up your project.
- If you already have a configuration stored, copy and paste it.
- Set a value for the field
description. - Click on the
Createbutton.
Using curl
This guide was made with curl v7.88.1 and yq v4.40.2
The easiest way to work with curl is by writing your configuration in file
- Create a file.
- Write the project configuration, this guide will use a
YAMLfile - Use the following command template:
curl -s -b <FILE_NAME_TO_STORE_AUTHORIZATION_TOKEN>.txt -X POST "https://console.makermike.io16.com:<PORT>/crud_create?table=_project" \ -F name="<NAME_FIELD_VALUE>" \ -F description="<DESCRIPTION_VALUE>" \ -F config="$(yq e -o=json <PATH_TO_THE_CONFIGURATION_YAML_FILE>)"
Using Postman
-
Use the following URL
https://console.makermike.io16.com:<PORT>/crud_create?table=_project -
Move to the
Bodysection. - Select form-data.
- Set the key and value for the field
name. - Set the key and value for the field
config, but make sure your configuration is inJSONformat. - Set the key and value for the field
description. - Send the request.
Delete a Project
Using the UI
- In the project
console.makermike.io16.comgo to theProjecttable. - Choose the project to delete from the projects list.
- Click on the
red trash canicon. - A confirmation window will pop up.
- Confirm the deletion.
Using curl
-
Read the available projects with the following command template.
curl -k -s -b <FILE_NAME_TO_STORE_AUTHORIZATION_TOKEN>.txt "https://console.makermike.io16.com:<PORT>/crud_read?table=_project" -
Select the desired project to delete, you will need the ID value.
- Use the following command template to delete the project:
curl -k -s -b <FILE_NAME_TO_STORE_AUTHORIZATION_TOKEN>.txt -X POST "https://console.makermike.io16.com:<PORT>/crud_delete?table=_project" -F id=<PROJECT_ID>
Using Postman
-
Use the following URL to read the available projects.
https://console.makermike.io16.com:<PORT>/crud_read?table=_project -
Select the desired project to delete, you will need the ID value.
- Open a new tab.
-
Use the following URL.
https://console.makermike.io16.com:<PORT>/crud_delete?table=_project -
Set the key named
id. - Set the value of the key with the project id to delete
- Send the request.
Troubleshoot
Error code: 400 Response: {"error": "No entries deleted"} Possible fixes:
Make sure that you are not attempting to delete the project with id 1, if this is the case you are attempting to delete the console.makermike.io16.com project and that is not allowed.
Error code: 400 Response: {"error": "YAML file not well-formed at <TABLE_NAME>/<YAML_FILE>" Possible fixes:
Make sure the YAML file indicated in the error has the correct format.
Error code: 400 Response: {"error": "Unsupported file type found in folder <TABLE_FOLDER_NAME>, supported files: yaml"} Possible fixes:
Make sure that the table folder indicated in the error message contains only YAML files.
Error code: 400 Response: {"error": "Invalid column found at file: <TABLE_NAME>/<YAML_FILE>"} Possible fixes:
Make sure that the columns in the suggested YAML file correspond to the current columns described for the table in the project_data.json file.
Error code: 400 Response: {"error": "Invalid column found at file: Missing referenced row for
Make sure that the references to their tables make it by the table indicated in the error are present in the respective folders.
Error code: 400 Response: {"error": "This project is missing an internal resource. Please contact support."} Possible fixes:
Make sure the folders _admin/uploads are present, even if there are no files to import.
Error code: 404 Response: {"error": "No such table _project"} Possible fixes:
- Make sure you are logged in.
- Make sure you have the proper roles to read the table.