# angularItoast项目后端 **Repository Path**: peng150/angular-toast-project-backend ## Basic Information - **Project Name**: angularItoast项目后端 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-07 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # api-server [![Build Status][travis-image]][travis-url] [![Dependency Status][dependency-image]][dependency-url] [![devDependency Status][devdependency-image]][devdependency-url] [![Code Style][style-image]][style-url] [travis-image]: https://img.shields.io/travis/zce/dashboard-server/master.svg [travis-url]: https://travis-ci.org/zce/dashboard-server [dependency-image]: https://img.shields.io/david/zce/dashboard-server.svg [dependency-url]: https://david-dm.org/zce/dashboard-server [devdependency-image]: https://img.shields.io/david/dev/zce/dashboard-server.svg [devdependency-url]: https://david-dm.org/zce/dashboard-server?type=dev [style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg [style-url]: http://standardjs.com/ > A JSON file RESTful API with authorization based on [json-server](https://github.com/typicode/json-server) ## Usage ```sh # clone repo $ git clone https://github.com/zce/dashboard-server.git # change directory $ cd # install dependencies $ yarn # or npm install ``` modify [database.json](database.json) file ```sh # serve with hot reload at http://localhost:2080 $ yarn dev ``` ## JWT Authorization > with [jsonwebtoken](http://jwt.io) ``` # create token POST /tokens { username: 'zce', password: 'wanglei' } # check token GET /tokens { header: { Authorization: 'Bearer ' } } # revoke token DELETE /tokens { header: { Authorization: 'Bearer ' } } ``` ## License [MIT](LICENSE) © [汪磊](http://zce.me)