A simple test for PHP / JavaScript Developers
- The project files should be inside catchnz-test directory
- Navigate to http://domain-name/catchnz_test/index.php after uploading to server
- Enter database host, username, password and database name in the form when asked
- Once the installation is finished, it will be redirected to the home page
- click on "Import CSV Data" button to import data from CSV file to database
- Click on "Show Customers" button to load imported data from database
- I used MySQL DB
- Fork or clone this repo
- Write a script to Import the CSV file located in
data/customers.csv
into a database (MySQL or Mongo is preferred) - Create a basic PHP web service that serves the data from the database as JSON
- Create a basic web page that asynchronously loads the JSON into a list or table when you click a button
- If you are completing this test as part of a job application please include a zip file of your project (including git config/metadata) with your application otherwise create a pull request and we'll take a look :)
- Your repo needs to include at minimum anything required to get the app working. Detailed instructions should be provided in the
README.md
file to setup and run the app. - If a structured schema migration tool is not used then a setup script must be supplied to create any data tables etc
- Try not spend more than 2 hours on it
- Make it Pretty
- Make it as OO as possible
- Consume dependencies with tools like Composer, Bower and NPM
- Use patterns like MVC, ORM
- Compile any front end assets with a build tool like gulp
- Unit tests