api-es6-playground

所属分类:其他
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2021-03-17 09:57:48
上 传 者sh-1993
说明:  正在进行的工作。示例JS API操场,在无忧无虑的环境中实践香草素材
(Work in Progress. Sample JS API playground to practice vanilla stuff in a worryless environment)

文件列表:
.babelrc (38, 2021-03-17)
.eslintrc.js (816, 2021-03-17)
extras/ (0, 2021-03-17)
extras/JS-API-Playground.postman_collection.json (25192, 2021-03-17)
nodemon.json (23, 2021-03-17)
package.json (1361, 2021-03-17)
src/ (0, 2021-03-17)
src/app.js (1472, 2021-03-17)
src/auth/ (0, 2021-03-17)
src/auth/auth.js (0, 2021-03-17)
src/auth/tokens.js (0, 2021-03-17)
src/config/ (0, 2021-03-17)
src/config/constants.js (79, 2021-03-17)
src/controllers/ (0, 2021-03-17)
src/controllers/album.js (5109, 2021-03-17)
src/controllers/artist.js (5895, 2021-03-17)
src/controllers/collectives.js (118, 2021-03-17)
src/controllers/song.js (4545, 2021-03-17)
src/controllers/user.js (7547, 2021-03-17)
src/middlewares/ (0, 2021-03-17)
src/middlewares/auth.js (863, 2021-03-17)
src/models/ (0, 2021-03-17)
src/models/album.js (338, 2021-03-17)
src/models/artist.js (284, 2021-03-17)
src/models/collective.js (279, 2021-03-17)
src/models/song.js (349, 2021-03-17)
src/models/user.js (298, 2021-03-17)
src/routes/ (0, 2021-03-17)
src/routes/album.js (863, 2021-03-17)
src/routes/artist.js (883, 2021-03-17)
src/routes/collectives.js (887, 2021-03-17)
src/routes/song.js (771, 2021-03-17)
src/routes/user.js (965, 2021-03-17)
src/server.js (716, 2021-03-17)
src/services/ (0, 2021-03-17)
src/services/jwt.js (837, 2021-03-17)

# API-JS-Playground Sample playground for creating and testing an API with express.js, and consume from [JS-Playground](https://github.com/CatinhoCR/ES6-Playground). ## Dependencies - Node (NPM) - MongoDB (Will soon add option to use local fake JSON mocked-data) ## Installation - Clone, then run `npm install`. - Create a `.env` file at the root folder and add these: (Make sure your local URL matches.. Token secretes can be w/e for now and feel free to change the port to ur prefered dev flow) ```nodejs MONGO_LOCAL_CONN_URL=mongodb://127.0.0.1:27017/ MONGO_DB_NAME= ACCESS_TOKEN_SECRET=addjsonwebtokensecretherelikeQuiscustodietipsoscustodes REFRESH_TOKEN_SECRET=notsosecret PORT=8000 ``` ## Usage Fow now, simply run `npm run dev`. **Note:** `clean` and `start` scripts are added but not functional yet, will be extended once production env workflow is added.

近期下载者

相关文件


收藏者