GithubHelp home page GithubHelp logo

movie-lists's Introduction

movie-lists

Description

decode final project (Denis, Konrad, Jonathan)

Docs

Goodle doc

Github repository

Backend

Server port: 5050

Libraries

express, MongoClient, MongoDB by mLab,

Cookies

Session id generator to a digit from 10mln to 99,999mln

Name: __sid__ Value: 77003076 Expired: never

Endpoints

tests

get /tests

url: http://localhost:5050/tests method: get body: none

response:

{
    "success": true,
    "tests": [
        {
            "_id": "5c5f76a8bfc646349070c2d4",
            "name": "Forrest",
            "surname": "Gump"
        },
        {
            "_id": "5c66f9311621e129c25ccbfa",
            "name": "Buzz",
            "surname": "Lightyear"
        }
    ]
}
post /tests/add

url: http://localhost:5050/tests/add method: post body:

{
  "name": "Buzz",
  "surname": "Lightyear"
}

response:

{
    "success": true,
    "message": "test added",
    "doc": {
        "n": 1,
        "opTime": {
            "ts": "6658289882600833025",
            "t": 1
        },
        "electionId": "7fffffff0000000000000001",
        "ok": 1,
        "operationTime": "6658289882600833025",
        "$clusterTime": {
            "clusterTime": "6658289882600833025",
            "signature": {
                "hash": "lz4i5xB7ArylNevlRM0zqArcs8s=",
                "keyId": "6656070557034872833"
            }
        }
    }
}

users

get /users

url: http://localhost:5050/users method: get body: none

response:

{
    "success": true,
    "users": [
        {
            "_id": "5c670254552be03f4005fcd2",
            "email": "[email protected]",
            "password": "123"
        }
    ]
}

post /users/signup

url: http://localhost:5050/users/signup method: post body:

{
  "email": "[email protected]",
  "password": "123"
}

response:

Cookie: sid:

{
    "success": true,
    "message": "user added",
    "doc": {
        "n": 1,
        "opTime": {
            "ts": "6658320518602555393",
            "t": 1
        },
        "electionId": "7fffffff0000000000000001",
        "ok": 1,
        "operationTime": "6658320518602555393",
        "$clusterTime": {
            "clusterTime": "6658320518602555393",
            "signature": {
                "hash": "1nTYbjTK4zksxBzm/UmoeO9wlEs=",
                "keyId": "6656070557034872833"
            }
        }
    }
}
post /users/login

url: http://localhost:5050/users/login method: post body:

{
  "email": "[email protected]",
  "password": "123"
}

response:

Cookie: sid:

{
    "success": true,
    "message": "Logged in successfully"
}

lists

Frontend

Dev Client port: 3080

movie-lists's People

Contributors

code-magi avatar denisirkhin avatar konradobritzhauser avatar

Stargazers

 avatar  avatar

movie-lists's Issues

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.