Express.js + Couchbase + JavaScript codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
This is a fork of https://github.com/winterrrrrff/realWorld-server, using Couchbase and Ottoman.js instead of MongoDB and Mongoose.
This codebase was created to demonstrate a fully fledged fullstack application built with Express.js + Couchbase + JavaScript including CRUD operations, authentication, routing, pagination, and more.
We've gone to great lengths to adhere to the Express.js + Couchbase + JavaScript community styleguides & best practices.
For more information on how to this works with other frontends/backends, head over to the RealWorld repo.
- install npm
- Run
npm installin the project folder - Run
npm run devfor dev mode andnpm run startfor regular mode
All the routes are defined in the
routesfolder, and their corresponding controllers are implemented in thecontrollersfolder.
- Only one
access_token_secretis used for all the accounts registration and login. Drawback: data can be forged if this secret is leaked - Included array structures, e.g. list of comments in the article model and favorited articles in the user model. Drawback: not good for scalability
- Usernames are case-sensitive
