Git Product home page Git Product logo

nktc-diffusion's Introduction

NKTC Diffusion

欢迎使用 NKTC Diffusion !

使用说明

编辑

复制 /static/data/universities.example.json 到 /static/data/universities.json 开始增加大学。

在 /static/data 目录下可以增加图片或者视频。

例:如果要为一个大学添加 cover,cover 参数可以写成如下形式 /static/data/uf-cover.jpg 。

编译

为了保证编译顺利进行,你需要安装node以及npm。

在每次修改完大学信息后,需要重新编译程序,使用如下命令:

npm run build

而后会在 /dist 目录下生成需要部署的文件。

部署

请使用Apache2部署项目,启用rewrite mod并且在部署项目的目录下创建如下文件来实现Pretty Urls,内容如下:

.htaccess

RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]

# If the requested resource doesn't exist, use index.html
RewriteRule ^ /index.html

如果你不想部署到线上,你可以使用

npm run dev

使用一个本地的测试环境(localhost:8080)

nktc-diffusion's People

Contributors

lookas2001 avatar

Watchers

James Cloos avatar Yongyi Zang 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.