Using NodeJS and Puppeteer.
Creating a fake data server with ExpressJS, EJS and TailwindCSS.
- Add this files do any directory
- Run
npm install
server {
listen 80;
server_name 202.157.186.15;
root /var/www/blog/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| void main() => runApp(MaterialApp( | |
| home: MyApp(), | |
| )); |
If we have the following structure in our application:
And we fill our index.php with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.