Express.js + Couchbase + Typescript codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
This codebase was created to demonstrate a fully fledged fullstack application built with Express.js + Couchbase + Typescript including CRUD operations, authentication, routing, pagination, and more.
We've gone to great lengths to adhere to the Express.js + Couchbase + Typescript 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 install
in the project folder - Export your variables
- Run
npm run dev
for dev mode andnpm run start
for regular mode
All the routes are defined in the
routes
folder, and their corresponding controllers are implemented in thecontrollers
folder.
TODO:
- Robust Error handling
- Only one
access_token_secret
is used for all the accounts registration and login. Drawback: data can be forged if this secret is leaked - Usernames are case-sensitive