https://github.com/zhs007/cc-passportserv
coding challenge for passport
https://github.com/zhs007/cc-passportserv
Last synced: 9 days ago
JSON representation
coding challenge for passport
- Host: GitHub
- URL: https://github.com/zhs007/cc-passportserv
- Owner: zhs007
- License: mit
- Created: 2019-02-13T23:49:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T08:50:34.000Z (over 7 years ago)
- Last Synced: 2025-02-22T21:14:17.131Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cc-passportserv
[](https://travis-ci.org/zhs007/cc-passportserv)
This is a coding challenge for passport.
This service is based on [egg.js](https://eggjs.org/).
Use docker deployment, use nginx's upstream, and configure ssl for nginx.
### Install
- Install mysql
- Import mysql script ``sql/ccpassport.sql`` to the database
- ``cp -rf ./cfg ./config``
- Configure ``config/config.default.js``
- ``npm i``
### Unit Test
We have prepared a docker configuration for unit testing, see ``Dockerfile.unittest``.
```bash
sh startunittest.sh
```
### Docker Deployment
- Install mysql
- Import mysql script ``sql/ccpassport.sql`` to the database
- ``cp -rf ./cfg ./config``
- Configure ``config/config.default.js``
- ``sh builddocker.sh``
- ``sh startdocker.sh``
[Passport API Document](https://app.swaggerhub.com/apis-docs/zhs007/cc-passport/1.0.0)