Inspiration and credit goes to the original project.
- Inventory management
- Track status of each item on a per request or user basis
- Categorise each of the items in the inventory
- Download Docker
- Setup WSL2 kernel update
- Setup your IDE
- Download PHP and place it inside the root of your
C:
drive extracted. - Enable the following PHP extensions inside the
php.ini
file (Further instructions can be found in the file itself):- bz2
- curl
- ftp
- fileinfo
- mbstring
- mysqli
- openssl
- pdo_mysql
- pdo_pgsql
- pdo_sqlite
- pgsql
- shmop
- Install composer using the Windows installer found at the top of the page.
- Download the
.msi
installer for windows, using the LTS version of Node. - Decide what you want to call your project. We will refer to it now as
$project
. - Initialise a project by running
composer create-project laravel/laravel $project
in powershell. - Enter the directory of your new project via powershell by running
cd ./$project
- Install composer packages by running
composer install
- Install NPM packages by running
npm install
- Setup environment file by running
cp .env.example .env
- Generate your application key:
php artisan key:generate
- Open docker desktop and wait till it has initialised.
- Run this command in command line:
docker pull postgres
then rundocker pull dpage/pgadmin4
- Inside docker, navigate to
images
tab on the left and find postgres in the list. - Hover your mouse over
postgres
and press therun
button located to the right of it. - In the menu, dropdown the section which says
optional settings
and enter the following information:container name
- Give the container a name, this can just bepostgres
ports
- Give the container a port which you will use to access the container, this can just be5432
which is the default.- In the environment variables section create the following:
POSTGRES_PASSWORD
- Set this as the variable then in the value, create a no-space password which you will use to access the database.
- Press
run
to start the postgres server. - If you are connecting your application to a database, add the URL and credentials to
.env
:DB_HOST
- Using docker, this would just belocalhost
.DB_CONNECTION
- In this example, we use postgres sopgsql
would go here.DB_PORT
- This would be whatever you set as the port on docker when you created the container.DB_DATABASE
- Name of the database that we will be creating.DB_USERNAME
- For this example, this is simplypostgres
.DB_PASSWORD
- Whatever you set the docker container environment variable to.
- Run
php artisan migrate
to set up the database with any migrations that you might have. - Compile assets by
npm run dev
- Start the server:
php artisan serve
- Visit your server on http://localhost:8000