The source code of naurislinde.com
This repository contains source code of my personal portfolio at naurislinde.com
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- PHP 8.0
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- BCMath PHP Extension
- Redis server (optional)
A step by step series of examples that tell you have to get a development env running
Clone this repository
git clone [email protected]:FaZeRs/naurislinde.com.git
Build containers
docker-compose up -d --build
Access docker environment
docker container exec -it php-fpm sh
Run this command inside terminal to create .env file, install dependencies, generate key, run migrations and tests.
composer start
The application will be available on http://localhost:3000, the mailhog on http://localhost:8025
Laravel project dependencies are managed through the PHP Composer tool. The first step is to install the dependencies by navigating into your project in terminal and typing this command:
composer install
This repository ships with a .env.example file in the root of the project. You must rename this file to just .env
The first thing we are going to so is set the key that Laravel will use when doing encryption.
php artisan key:generate
You must create your database on your server and on your .env file update the following lines:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
We are going to run the built in migrations to create the database tables
php artisan migrate --seed
Now we need to create the encryption keys needed to generate secure access tokens.
php artisan jwt:secret
In order to install the Javascript packages for frontend development, you will need the Node Package Manager, and optionally the Yarn Package Manager by Facebook (Recommended)
If you only have NPM installed you have to run this command from the root of the project:
npm install
Compile assets:
npm run build
We use Laravel Passport. It is an OAuth2 server and API authentication package.
composer test
- Laravel - The backend framework used
- Vue - The frontend framework used
- Vuetify - Vue component framework used
- Docker - PHP development environment
- Nuxt - The Intuitive Vue Framework
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Nauris Linde - Initial work - FaZeRs
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details