GithubHelp home page GithubHelp logo

azabell1993 / azabellcode.com Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 86.52 MB

Java 0.25% C 0.75% Assembly 0.08% Shell 0.01% C++ 0.02% JavaScript 2.21% CSS 0.69% SCSS 0.59% HTML 2.18% Python 92.95% PowerShell 0.27% Batchfile 0.01%

azabellcode.com's Introduction

개인적으로 운영하고 있는 블로그의 소스코드를 공개로 전환하였습니다. 현업이 있기 때문에 천천히 하나씩 기능을 추가하는 중 입니다.

반갑습니다.

블로그의 취지는 WASM의 기술을 직접 블로그에 시연 및 공부를 하면서 정보를 공유하기 위해서 입니다.

DATABASE

  • mysql (Git Ignore File) src\main\resources\application.properties
project.name=azabellcodeblog

# LOCAL
server.port=8080
spring.datasource.url=jdbc:mysql://localhost:port/DB?useSSL=true&characterEncoding=UTF-8&serverTimezone=UTC

spring.freemarker.cache=false

# 타임리프, jsp 공통 설정
spring.mvc.view.prefix=WEB-INF/views/
spring.mvc.view.suffix=.jsp
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.cache=false

spring.thymeleaf.view-names=thymeleaf/*

spring.datasource.username=
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

logging.level.org.springframework=debug
logging.level.org.springframework.web=debug

mybatis.mapper-locations=classpath:/mapper/**/*.xml
mybatis.configuration.map-underscore-to-camel-case=true

# Encoding 설정
server.servlet.encoding.charset=UTF-8
server.servlet.encoding.enabled=true
server.servlet.encoding.force=true

HOW?

  • DB : MySQL
  • SERVER : Window11
  • HTTPS : CloudFlare
  • CLIENT : LINUX, WINDOW, MAC
  • WAR로 베포합니다.
dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-jdbc'
	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
	implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.3.0'
	compileOnly 'org.projectlombok:lombok'
   	runtimeOnly 'com.mysql:mysql-connector-j'
	annotationProcessor 'org.projectlombok:lombok'
	providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

큰 틀

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" class="fontawesome-i2svg-active fontawesome-i2svg-complete">
<head>
    <title th:text="${site_title}">Template Title</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <link rel="stylesheet" href="assets/css/main.css" />
    <link rel="stylesheet" href="assets/css/fold.css" />
</head>
<body class="is-preload">

    <!-- Wrapper -->
        <div id="wrapper">

            <!-- Main -->
                <div id="main">
                    <div class="inner">
                        <div>
			<!-- Header -->
				<header id="header">
				<a th:href="@{/index}" class="logo"><strong>AZABELLCODE</strong> by Azabell1993</a>
				<ul class="icons">
					소스코드 바로가기 <li><a onclick="window.open('https://github.com/Azabell1993/ClangStructPointerExample')" class="icon brands fa-github"></a></li>
				</ul>
				</header>
						
			<!-- Banner -->
				<section id="banner">
					<div class="content">
					</div>
				</section>
			</div>
				
			<!-- insert main content -->
                        <th:block th:replace="thymeleaf/main/main_insert.html :: indexFragment"></th:block>
                        <div>
                        <section include-html="thymeleaf/main/foot.html"></section>
                    </div>
                    </div>
                </div>

                <div id="sidebar">
                    <div class="inner">
                        <th:block th:replace="thymeleaf/main/menu.html :: mennuFragment"></th:block>
                    </div>
                </div>
        </div>
        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/browser.min.js"></script>
        <script src="assets/js/breakpoints.min.js"></script>
        <script src="assets/js/util.js"></script>
        <script src="assets/js/main.js"></script>
        <script src="assets/js/innerHTML.js"></script>
        <script src="assets/js/includeRouter.js"></script>
        
        <!-- add Scripts -->
        <script src="/assets/js/AddFunction.js"></script>
        
</body>
    <script>
    includeHTML( function () {
      includeRouter( function () {
        // do something in the future
      });
    });
    </script>
</html>
  • 기본적으로 타임리프를 사용하면서 페이지 이동을 하였습니다.
<th:block th:replace="thymeleaf/main/main_insert.html :: indexFragment"></th:block>
  • WASM 기술 사용도 잘 연동이 되는 예제를 보실 수 있습니다.
  • 계속하여서 추가 예정 입니다.
    <div class="content">
    <header>
    <h1>제 블로그에 오신 것을 환영합니다.<h1><br />
    <h3>.wasm Binaray File 연동 TestSpace<h3>
    <h3>C언어 Function Test</h3>
    </header>
    <ul class="actions">
    <li>
    <input type=number size=20 id="numA"> + <input type=number size=20 id="numB">
    <button class="mybutton">ADD</button>
    <p id="textcontent">먼저 'ADD'버튼을 눌러주세요. 이곳에 결과가 나타납니다.</p>
    </li>
    </ul>
    </div>

azabellcode.com's People

Contributors

azabell1993 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.