Skip to content

DiamondLightSource/synchweb-devel-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SynchWeb Development Environment

Introduction

This project allows you to generate a dev environment for SynchWeb - using either Vagrant or Podman.

  • Instructions for setting up using Podman are available here.
  • Instructions for setting up using Vagrant are available here.

Note, setting things up in a container via Podman is signficantly simpler, more lightweight and requires less external dependencies (e.g. use of VirtualBox), so is the encouraged route.

IDE Help

Visual Studio

Plugins which are useful:

  • PHP Intelephense Intellisense for PHP
  • Psalm PHP Static analysis Typing
    • Set script path: "psalm.psalmScriptPath": "api/vendor/vimeo/psalm/psalm-language-server"
    • Add config path: "psalm.configPaths": ["psalm.xml", "psalm.xml.dist", "api/psalm.xml",]

Troubleshooting

If errors are encountered along the way, it can be helpful to use postman to isolate and diagnose these. This allows individual http requests to be created and sent - which can be particularly helpful when invoking the backend API. If errors are being returned from the PHP code, print_r() can be added to the related code to return print statements in the http response.

About

synchweb development environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors