Giter Site home page Giter Site logo

fateee98 / realworld-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from winterrrrrff/realworld-server

0.0 0.0 0.0 106 KB

The server-side of realWorld project using Express.js and MongoDB

Home Page: https://angular-realworld-example-app-neon.vercel.app

JavaScript 97.99% CSS 1.24% HTML 0.77%

realworld-server's Introduction

RealWorld Example App

Express.js + MongoDB + JavaScript 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 + MongoDB + JavaScript including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Express.js + MongoDB + JavaScript community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

Getting started

  1. install npm
  2. Run npm install in the project folder
  3. Run npm run dev for dev mode and npm run start for regualr mode

How it works

All the routes are defined in the src/routes folder, and their corresponding controllers are implemented in the src/controllers folder.

Design Choices and Tradeoffs

  • Only one access_token_secret is 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

realworld-server's People

Contributors

winterrrrrff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.