This is a simple application made on Symfony and ReactJS for 2 simple usecase
- Store and retrieve the file path a file, stored in database.
- Multi contact form with front-end and back end validation with React JS and PHP.
- MySql 8
- PHP72
You also need the Nodejs and npm in your development environment to build the webpack.
- Clone the repository
git clone https://github.com/abulwcse/netpay.git - Run
composer installin your project root directory. - Run
npm installto install all the webpack dependencies. - Duplicate
.envfile in the name.env.local - Update your database connection details in the
.env.localfile - Run
bin/console --env=dev doctrine:database:createif you haven't created database already, this command with create an empty database for you. - Run
bin/console --env=dev doctrine:migrations:migratethis will create you the required table. - Run
npm run buildthat will compile and dump the webpack assets. - Run
symfony servethis is start a local php server, and you will now be able to browse the application on your site.
A symfony console command is implemented to import the file structure into the database. To run the command, run the following from your project root directory.
bin/console netpay:generate
This will import a in-build example file demo/file.txt.
You can also pass a user defined file, using the option --file in the same command.