Browse Source

Update README.md solves #1

Sergio Álvarez 2 years ago
parent
commit
8f6056fd58
1 changed files with 30 additions and 1 deletions
  1. 30 1
      README.md

+ 30 - 1
README.md

@@ -1,2 +1,31 @@
-
 Code for [RegExp Live tester](https://xrg.es).
+
+Install: `npm i`
+
+Dev server: `npm start`
+
+Build: `npm run build`
+
+Simple nginx dev server:
+
+```
+server {
+        listen 80;
+        server_name localhost;
+
+        root /var/www/;
+
+        location ~ \.php$ {
+                fastcgi_pass unix:/run/php/php7.2-fpm.sock;
+                include fastcgi_params;
+                fastcgi_param SCRIPT_FILENAME $request_filename;
+        }
+}
+```
+
+And then:
+
+```bash
+$ mkdir /var/www/xrg.es
+$ sudo mount --bind api/ /var/www/xrg.es
+```