- Download composer https://getcomposer.org/download/
- Pull Laravel/php project from git provider.
- Rename
.env.example
file to '.env' inside your project root and fill the database information. (windows wont let you do it, so you have to open your console cd your project root directory and runmv .env.example .env
) - Open the console and cd your project root directory
- Run
composer install
orphp composer.phar install
- Run
php artisan key:generate
- Run
php artisan migrate
- Run
php artisan db:seed
to run seeders, if any. - Run
php artisan serve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DB properties | |
db.driver=com.mysql.cj.jdbc.Driver # org.postgresql.Driver | |
db.url=jdbc:mysql://localhost:3306/demospring # jdbc:postgresql://localhost:5432/springdemo | |
db.username=root | |
db.password=xxxxxx | |
# Hibernate properties | |
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect # org.hibernate.dialect.PostgreSQLDialect | |
hibernate.show_sql= true | |
hibernate.format_sql= true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#spring.jpa.hibernate.ddl-auto=create | |
spring.datasource.url=jdbc:mysql://localhost:3306/latihan | |
spring.datasource.username=root | |
spring.datasource.password=xxxxxx | |
spring.jackson.serialization.indent_output=true | |
spring.jpa.show-sql=true | |
spring.jpa.properties.hibernate.format_sql=true | |
#Thymeleaf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Authentication Routes... | |
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); | |
Route::post('login', 'Auth\LoginController@login'); | |
Route::post('logout', 'Auth\LoginController@logout')->name('logout'); | |
// Registration Routes... | |
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register'); | |
Route::post('register', 'Auth\RegisterController@register'); | |
// Password Reset Routes... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll] | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell] | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open] | |
"MuiVerb"="@photoviewer.dll,-3043" | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command] |
Gaming PC
- CPU: AMD Rayzen 5 3600x
- RAM: 16GB
- VGA: Nvidia RTX 2060
- SSD: 250GB
- HDD: 1TB
- PSU: 700w
- CPU Fan: Cooler Master ML249R RGB
Gear
Start server Docusaurus
-
npm start
Starts the development server. -
npm run build
Bundles your website into static files for production. -
npm run serve
Serves the built website locally. -
npm run deploy
Publishes the website to GitHub pages.
Download Open JDK on https://jdk.java.net/. Example jdk version is using 17, then extarct jdk archive, and move to directory where you want, recommended jdk location move at /Library/Java/JavaVirtualMachines/
.
Edit file .bashrc
or .profile
or .zshrc
at your home place, and register bin
jdk on path, add this code at bottom:
export PATH="/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/bin:$PATH"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.luv2code.springdemo; | |
import java.util.logging.ConsoleHandler; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import java.util.logging.SimpleFormatter; | |
import org.springframework.context.annotation.AnnotationConfigApplicationContext; | |
public class MyLoggerConfig { |