Please check the official laravel installation guide for server requirements before you start. Official Documentation
- Clone the repository
- Switch to the repo folder
- Install all the dependencies using composer
- Copy the example env file and make the required configuration changes in the .env file
- Generate a new application key
- Run the database migrations
- Start the local development server
- Create a new branch with the candidate's name (Your name). After the branch is done, the candidate should do the following:
- Configure a local database and run the default laravel migrations that are already created in laravel. Postgress, MySQL or sqlserver can be used.
- Create a new model called Product, that must include the product’s migration to the database. This migration depends entirely on the candidate's vision to build the table attributes.
- Create the ProductsController.
- Build a relationship between products and users. A product should have an unique user. That means that a product belongs to an user and a user has one product. This must be done using laravel models to achieve it.
- Create a function in the ProductsController to create a new user in the database. After the user is created, created a product and link that product to the user using the model previously created. This can be completed on the same function.
- Print the results creating and using a route that points to the ProductsController to show all users that has products related or linked.
- Push the changes to the candidate’s branch