Coder Social home page Coder Social logo

bookapi's Introduction

BookAPI

Repository for the bookAPI project from leetcode. https://leetcode.com/discuss/interview-question/system-design/125383/REST-API-for-Book-Catalog/244588

Getting Started

Follow these instructions to get a dev environment up and running on your system.

Prerequisites

- Install Node https://nodejs.org/en/.
- Once node is installed you should be able to check the version in the terminal by doing --version.
- Install MongoDB https://www.mongodb.com/download-center/community.
- Install MongoDB Compass(GUI for MongoDB) https://www.mongodb.com/download-center/compass.

Installing

  1. Clone the repro.
  2. In a terminal, go to the folder where the package.json is and run npm install.
  3. Then DEBUG=myapp:* npm start to run the server.

Contributing

  • Branches
    • Master: Should always work. Code review before pushing to master.
    • Dev: The branch to work with.
  • Workflow (We can change this later if it does not work out)
    • Work from the dev branch.
    • Before committing to the dev branch do a pull request to get current info from the repro.
    • Push to dev if everything is good. Also make sure to document the part you did in the code.

Additional Information

  • bin/www - Sets up the server.
  • public - any JS, css, images we need for the server.
  • routes - Endpoints for the API. Logic for the endpoints should be placed here.
  • test - test logic placed here.
  • views - rendering of html for the server if needed.
  • app.js - Entry point for the server. Create new route endpoints here and add middleware.
  • .gitignore - Tells git not to push stuff in this file.
  • package.json - dev dependencies/dependencies.

Testing

Built With

  • Node - JavaScript Runtime.
  • Express - Web Framework.
  • MongoDB - Database.
  • Mochajs - Testing framework.

bookapi's People

Contributors

nommuna avatar

Watchers

James Cloos avatar  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.