- PHP 7
- Mysql
Dependencies
- slim/slim
- arojunior/php-orm-pdo
- React
- Redux
Dependencies
- erikras/redux-form
- choko-org/redux-boot
- ramda/ramda
- arojunior/redux-localstore
It is using Webpack 2 as module bundler and is WPA by default.
The easiest way. Clone repository and run:
docker-compose up -dClient: http://localhost:3000 API: http://localhost:8000
To run this application without Docker, you gonna need PHP 7+, Composer and Mysql installed locally.
- 1 - import
/api/database.sqlin you local Mysql - 2 - go to /api and run
composer installto install the dependencies - 3 - change database connection configuration in
/api/src/Models/App.php - 4 - then you can run the API going to
/api/publicwithphp -S localhost:8000 - 5 - go to
/client/buildand run the Client withphp -S localhost:3000
- User should log in with e-mail and password
- All form fields are required
- It should show a warning if user try to send the form empty
- Everyone can create an account
- All form fields are required
- It should validate duplicated e-mails
- The menu should be shared with all authenticated pages
- Authentication is not required to Login and New account page
- Authentication is required to Dashboard, New company, New order, My orders and My account page
- User should land in
Dashboardpage after Login - Companies list should has a link in quantity column to go to orders page
- Users can create one or more companies. If they got no companies, they can't create orders
- The form should verify if ENI (a.k.a CNPJ in Brazil) is valid. All fields are required
- Users should select one company to create an order, after that they can select the product and quantity
- Users can view orders information and cancel an order whenever they want
- User can edit this profile everytime he want
- It should validate duplicated e-mails, as
New accountpage

