Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samsoft00/codeline-hotel-api
Codeline Hotel Management System (CHML) API developed with Laravel framework, frontend powered by VueJs
https://github.com/samsoft00/codeline-hotel-api
api laravel-framework lumen php vuejs
Last synced: 8 days ago
JSON representation
Codeline Hotel Management System (CHML) API developed with Laravel framework, frontend powered by VueJs
- Host: GitHub
- URL: https://github.com/samsoft00/codeline-hotel-api
- Owner: samsoft00
- Created: 2019-07-23T22:25:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T05:12:24.000Z (almost 2 years ago)
- Last Synced: 2023-08-03T08:21:46.814Z (over 1 year ago)
- Topics: api, laravel-framework, lumen, php, vuejs
- Language: JavaScript
- Homepage:
- Size: 34.1 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About Codeline Hotel Management System
Codeline Hotel Management System (CHML) is a web application develop using Laravel and VueJs framework, with expressive, elegant syntax.
CHML takes the pain out of Hoteliers by easing their Booking process and Customer management, such as:- Room Manager
- Room Type Manager
- Price List Manager
- Booking Manager## CHML Homepage
## CHML Backend Page
## CHML Setup
Setup is pretty simple, foremost you need to have the following install on your environment, currently using window, you can search on how to set it up on other OS.
1. Node && Node Package Manager
2. Php && Composer
3. Xampp/Wamp
4. Nagivate to your localhost http://127.0.0.1/phpmyadmin, create database called "codeline" then
5. Open your bash or CMD, ensure you have git install on your workstation, clone the repo below
```git clone http://gitlab.gitesoft.com/test-assignments-v2/22107-test-assignment-for-laravel-_-frontend.git ```
6. Once you successfully clone the repo, cd into the directory and run the following commad
7. In the project directory, run
``` npm install ``` => this will install
``` composer install ``` => This will install Laravel Dependencies
8. Before you procced, go to .env file in the project directory, change database connection parameters to fit into your configuration
``` php artisan migrate ``` => Create database table
``` php artisan db:seed ``` => Load seeders ( You can modified this in database/seeds/DatabaseSeeder.php)
9. If you're able to run the above successfully, congratulation, next, you should run the passport:install command. This command will create the encryption keys needed to generate secure access tokens. In addition, the command will create "personal access" and "password grant" clients which will be used to generate access tokens:
``` php artisan passport:install ```
10. After you've run the command, it'll print some data into your screen, use the second value to update the following params in your environment configuration (.env)
MIX_CLIENT_ID=2
MIX_CLIENT_SECRET=eDwaB2ZpgU62Wp21o3RB8I5yL6hZzC9FR2qM1TrK11. Run ```npm run dev ```
12. Finally, run the following command in your project directory to boot up the server.
``` php artisan serve ```
then go to
http://127.0.0.1:8000 => Home Page
http://127.0.0.1:8000/admin/room-manager => Administrator Page## Admin Login Credential
Email Address
[email protected]
Password
password
## Testing Instructions
1. Create ```.env.testing``` file with the following params``` javascript
APP_NAME=Laravel
APP_ENV=testing
APP_KEY=base64:5CpEFQ9UTR543dbJUsT3araoSSyxuN8NF92gCJJXpk8=
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000LOG_CHANNEL=stack
DB_CONNECTION=sqlite
DB_DATABASE=./database/test.sqliteBROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=array
SESSION_LIFETIME=120
QUEUE_DRIVER=syncMAIL_DRIVER=array
MIX_CLIENT_ID=2
MIX_CLIENT_SECRET=tCVvCTZjuH1h1rCGNufX2ZGqRAcS3LS3R95u2DEZ
```
2. Create ```database/test.sqlite ``` and then update the path in ```.env.testing```
3. Next, because we're going to make use of the seeder, run the following command and specify the env
```php artisan migrate --seed --env=testing```
4. Run ```php artisan passport:install --env=testing ``` and copy to replace the below in your ```.env.testing```'``` javascript
MIX_CLIENT_ID=2
MIX_CLIENT_SECRET=tCVvCTZjuH1h1rCGNufX2ZGqRAcS3LS3R95u2DEZ
```
4. Run test ```composer test```## Test Console
If you've any issue setting this up, will be available to help out.