Giter Site home page Giter Site logo

navinfonc / navicore-site-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kingsimba/navicore-site-v2

0.0 1.0 0.0 2.49 MB

NaviCore Department Website

Home Page: https://navicore.cn

License: MIT License

JavaScript 0.71% TypeScript 28.93% HTML 62.02% SCSS 8.34%

navicore-site-v2's Introduction

CI

NaviCore Department Site

This repository is the source code of our department website: https://navicore.cn

It contains the frontend and the backend. The backend is used for LDAP login and online document browsing.

HomePage

Main Feature

  • LDAP authentication
  • Online browsing of Sphinx-Docs generated documents
  • Document browsing authorization

Backend Notes

Mocha Tests

To run mocha tests.

  1. Make sure that no server is running(Stop debugging).

  2. Open Test Explorer

  3. Click Run all tests

    Tests

  4. Open auth.spec.ts and enter correct username/password information to pass all tests.

Development Server

Open navicore-site-backend.code-workspace with VSCode.

  • Press Ctrl+Shift+B to open tsc watch. (Configured in .vscode/tasks.json)
  • Press F5 to run. (Configured in .vscode/launch.json)

Production Server

Run npm run build to build the production server. The result is in dist/nc-site-backend.js

The protocol

The backend protocol document

About documents

Documents

Documents listed in this site are generated with Sphinx with RTD theme.

| NOTE: Only tested with python 2.x and Sphinx 1.6.3

?> pip install python-sphinx
?> pip install sphinx-rtd-theme

Each document is build with

?> make html

The generated HTML files are put in docs folder. This repository already contains some sample documents in it.

Frontend Notes

This project was generated with Angular CLI.

Development server

Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

proxy.conf.js is used to proxy URLs start with /api to the backend.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

navicore-site-v2's People

Contributors

dependabot[bot] avatar kingsimba avatar

Watchers

James Cloos 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.