National Taiwan University library study space map & register. Get your seat in the elegant way.
The aim of this project is to redesign the registration of study space in National Taiwan University Library, which provide intuitive and interactive way to choose the study seats. The early design research is here.
This project is maintained by Hack Campus. We specialize in the designing and coding of interface and system to improve campus service.
- NodeJS 6.0.0+
- NPM 3.0.0+
- Mongodb 3.0.0+
OSX
- Wine 1.6+ (required to build windows desktop app on OSX)
Windows
- Visual Studio 2015
- Python 2.7
npm install
First, be sure running a mongodb
# OSX/Linux
mongod
# Windows (be careful of your mongodb path)
C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe
Then, run the dev server:
# serve with hot reload at localhost:8080
# and graphQL server at localhost:3000/graphql
npm start
If you want test with the prodution API:
# Use production CheckIn API server in development, which needs credential
cross-env REGISTER_API_ENV=production npm start
# build for production with minification
npm run build
# Bundle all platform
npm run release
# Bundle OSX platform
npm run release:darwin
# Bundle Windows platform
npm run release:win32
# Bundle Linux platform
npm run release:linux
# Bundle Windows 32bit platform
npm run release:win32-ia32
For detailed explanation on how things work, checkout the (docs)[https://lucienlee.gitbooks.io/ntu-library-study-space/]
- Vue - The web framework proudly used
- Vuex - Manage client-side state
- D3 - Handle svg map interaction
- GSAP - Smooth JS-based Animation
- Apollo - Access server data with GraphQL
- Electron - Build cross platform desktop apps
In src/
, there are two entry points, namely main-library-desktop.js
and
main-external-client.js
, these are the entry points for the Electron Desktop
App for the library and the Website for external users.
This is done by using the code spilting feature of webpack.
Differences are things such as fonts are loaded via CDN or included, or some functions are only included each version.
Currently we are only serving the libraryDesktop
part
MIT
Copyright (c) 2016-2017 Hack Campus
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.