Git Product home page Git Product logo

nchu-lib-multimedia's Introduction

Nchu Media CMS 興大多媒體中心網站

This is a CMS system built on Keystone.js for Nchu library multi-media website

Outline

Here is the technical stack used in this project:

  • linux based OS
    • use terminal to operate
  • nodejs
    • keystone.js
  • docker (for easier deployment and management)
    • docker-compose

Build this service

Get the source of this project, by git for example:

git clone https://github.com/David-Tsui/NCHU-lib-Multimedia.git

Or zip/tar.gz of this project.

Use docker

You may need to install docker and docker-compose first

to build the env in docker, just

cd path/to/this/project
cp .env.example .env
cp docker-compose.example.yml docker-compose.yml
docker-compose build

Fire up the service

cd path/to/this/project
docker-compose up -d main

Check the service

View if service is alive

cd path/to/this/project
docker-compose ps

View logs

cd path/to/this/project
docker-compose logs

Stop the service

cd path/to/this/project
docker-compose kill

Backup DB data

cd path/to/this/project
docker-compose run backup

the backup directory will be stored at ./backup/YYYYMMDDhhmmss/nchu-lib

Restore DB data

cd path/to/this/project
docker-compose run restore ./backup/YYYYMMDDhhmmss/nchu-lib

Update / Rebuild the service

cd path/to/this/project
git pull # or any means to get the latest code
docker-compose build
docker-compose kill
docker-compose up -d main

Development

Get the code first

git clone https://github.com/David-Tsui/NCHU-lib-Multimedia.git
cd ./NCHU-lib-Multimedia

Copy config from example

cp .env.example .env
cp docker-compose.dev.yml docker-compose.yml

run the dev env, the code is shared between the container and the host

docker-compose run --rm --service-ports main

inside the dev env,

# to run server (Ctrl-c to close server):
npm run dev

# to compile assets (js, css):
npm run assets:compile

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.