Skip to content

agora-code-community/GPZ-Booking-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPZ Booking System

Setup

Server folder

The server now runs on Laravel, once the project has been cloned (the new/frontend branch) run the command composer update. This will install all relevant dependencies.

  1. Database setup (Laravel .env file) The .env file is ignored during Git commits so create a new file in the root server directory and name it .env. Copy the contents of the .env_example file and paste them in the newly created env file.

Replace the database details (DB_NAME, DB_PASSWORD, DB_USERNAME, etc) to concide with your MySQL credentials

Run the command php artisan key:generate to generate a new app key (or else the server might not run).

  1. Create a database in your phpmyadmin or whatever else you're using. Then Run the command php artisan migrate to generate the application database tables.

  2. One more configuration item is Passport, to config it run the command php artisan passport:install. This sets up necessary passport configs for the app.

From here you can run the server by running the command php artisan serve. Server must run on URL http://127.0.0.1:8000 or else api calls wont work.

Client folder

This is where the angular frontend app is housed.

To get started run the command npm install to install dependencies

Once dependencies are installed app is ready to run by running command ng serve -o. This opens the browser to http://localhost:4200

Note: Make sure to change the baseURLs in the application services before running it. Just uncomment the localhost one

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published