- PHP (v8.1)
- Composer (v2.4.4)
- IDE (VS Code)
- Clone this repository. run
git clone [email protected]:saisarah/TalipaAPP-Backend
- Install Composer dependencies. run
composer install
- Copy .env.example to .env
- Open .env and setup your database
- Generate application. run
php artisan key:generate
- Migrate the database. run
php artisan migrate --seed
- Link public storage. run
php artisan storage:link
- Start the application run
php artisan serve
- The .env file contains configuration that is specific for environment, such as database connection.
git add [files or folder]
to add changes in staging areagit commit -m "[Commit Message]"
to commit changes in historygit push -u origin [branch name]
to create and push to a remote branchgit push
to push local branch to remote branchgit switch [branch]
to switch to a different branchgit switch -
to switch back to the previous branchgit switch -c [branch]
to create and switch to a new branch
Laravel Commands
php artisan serve
to serve the applicationphp artisan migrate:fresh
this command will drop all the tables and re import the tablesphp artisan db:seed
this command wlll populate the datatabase.