https://github.com/kevinamayi/coding_test
Coding Test for Laravel and Vue
https://github.com/kevinamayi/coding_test
Last synced: 3 months ago
JSON representation
Coding Test for Laravel and Vue
- Host: GitHub
- URL: https://github.com/kevinamayi/coding_test
- Owner: KEVINAMAYI
- Created: 2023-11-15T09:46:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T11:44:43.000Z (over 1 year ago)
- Last Synced: 2025-04-10T00:38:45.687Z (3 months ago)
- Language: PHP
- Size: 1.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coding Test Project Setup
### To setup this project successfully, you need
- **[Composer For PHP Dependencies](https://getcomposer.org/)**
- **[PHP 8.1 Minimun requirement for Laravel 10](https://www.apachefriends.org/download.html)**
- **[MYSQL For Managing the database](https://www.apachefriends.org/download.html/)**
- **[NodeJS for installing VueJS dependencies](https://nodejs.org/en/)**## 1. Clone the Project Repository
- ### Clone the project Repository by Running this command in a folder you have created.
.
## 2. Install Dependencies
- ### Once the project has been cloned, cd into the project and run.
```
composer install
```.
## 3. Configure Database and Run Migrations
- Rename .env-example to .env
- Add database details to the .env ( Make sure to create the dabase or you can create it during migration ).
- Run migration to migrate the tables.
.
.## 4. Run Test
- ### Run tests which will insert some data in the database and test all functionalities for the APIs. In our case it will ensure the create, update, delete, show and index methods are working seemlessly.
```
php artisan test
```
.## 4. Start Backend Server
- Start the serve by running the command below. Don't close the serve as this will be required to be used by the frontend server.```
php artisan serve
```
.## 5. Install Dependencies for frontend
- CD into vue-rest-api inside your project and run npm install to intall frontend dependencies.```
npm install
```
.## 6. Start Frontend Server
- Start your Frontend server by running npm run dev.```
npm run dev
```
.## 6. Accessing the Website
- ### The frontend runs on port 3000, you can now access it on the browser at localhost:3000.
- #### Create a new Product by Clicking on the Create Product Option
.
.
- #### Edit the created Product by Clicking on the Edit Option
.
- #### Delete the Product by clicking on deleted option
.
.
## 7. Run Tests
- You can run the test by running this```
npm run test:unit
```.
.