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.
- LDAP authentication
- Online browsing of Sphinx-Docs generated documents
- Document browsing authorization
To run mocha tests.
-
Make sure that no server is running(Stop debugging).
-
Open Test Explorer
-
Click Run all tests
-
Open
auth.spec.ts
and enter correct username/password information to pass all tests.
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)
Run npm run build
to build the production server.
The result is in dist/nc-site-backend.js
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.
This project was generated with Angular CLI.
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.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.