Skip to content

Instantly share code, notes, and snippets.

View manishmore's full-sized avatar

Manish More manishmore

View GitHub Profile
@manishmore
manishmore / DockerToDrupal.txt
Created November 10, 2018 14:30
Install Drupal through the Docker Composer.
Here is the docker command to launch a MySQL 5.7 container, name it "DrupalMysql", set a
few environment variables, expose the MySQL port 3306 as 3308 on the local host and daemonise it:
docker run \
--name DrupalMysql \
-e MYSQL_ROOT_PASSWORD=my-secret-pw \
-e MYSQL_DATABASE=drupal \
-e MYSQL_USER=drupal \
-e MYSQL_PASSWORD=drupal \
-p 3308:3306 \
@bnchdrff
bnchdrff / README.md
Created July 21, 2016 13:30
Add POST endpoint for performant Drupal 8 REST file uploads

Instead of accepting serialized files, I wanted to process file uploads as multipart/form-data.

I also wanted to use the crsf prevention API.

This is what I came up with. Replace modulename with your module and fileupload with whatever you want to name your class/endpoint.

In your routing.yml: