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

  1. In the project console.makermike.io16.com go to the Project table.
  2. Open the create form clicking in the + button.
  3. Set a value for the field name.
  4. In the column field config a configuration template will be displayed automatically.
    1. If you don’t have a configuration, use the template to set up your project.
    2. If you already have a configuration stored, copy and paste it.
  5. Set a value for the field description.
  6. Click on the Create button.

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

  1. Create a file.
  2. Write the project configuration, this guide will use a YAML file
  3. 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

  1. Use the following URL

    https://console.makermike.io16.com:<PORT>/crud_create?table=_project
    
  2. Move to the Body section.

  3. Select form-data.
  4. Set the key and value for the field name.
  5. Set the key and value for the field config, but make sure your configuration is in JSON format.
  6. Set the key and value for the field description.
  7. Send the request.

Delete a Project

Using the UI

  1. In the project console.makermike.io16.com go to the Project table.
  2. Choose the project to delete from the projects list.
  3. Click on the red trash can icon.
  4. A confirmation window will pop up.
  5. Confirm the deletion.

Using curl

  1. 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"
    
  2. Select the desired project to delete, you will need the ID value.

  3. 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

  1. Use the following URL to read the available projects.

    https://console.makermike.io16.com:<PORT>/crud_read?table=_project
    
  2. Select the desired project to delete, you will need the ID value.

  3. Open a new tab.
  4. Use the following URL.

    https://console.makermike.io16.com:<PORT>/crud_delete?table=_project
    
  5. Set the key named id.

  6. Set the value of the key with the project id to delete
  7. 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 table"} Possible fixes:

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.
Top