Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone https://github.com/mdnurulmomen/univeware.git
Switch to the repo folder
cd univeware
Install all the dependencies using composer
composer install
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Generate a new application key
php artisan key:generate
Run the database migrations and seeder
(Set the database connection & credentials mentioned in .env before migrating)
php artisan migrate
php artisan db:seed
Install node dependencis
npm install
After installation, build with npm
npm run dev
Run the application
php artisan serve
Run the Test Cases
php artisan test
app
- Contains all the Eloquent modelsapp/Http/Controllers/Api/V1
- Contains all the api controllersapp/Http/Middleware
- Contains the JWT auth middlewareapp/Http/Requests/Api
- Contains all the api form requestsconfig
- Contains all the application configuration filesdatabase/factories
- Contains the model factory for all the modelsdatabase/migrations
- Contains all the database migrationsdatabase/seeders
- Contains the database seederroutes
- Contains all the api routes defined in api.php filetests
- Contains all the application tests
-
.env
- Environment variables can be set in this file -
.env.testing
- Environment variables for testing can be set in this file
Note : You can quickly set the database information and other variables in these files and have the application fully working.