Giter Club home page Giter Club logo

teams's Introduction

This is Teams service for JuJa community

TravisCI Build Status Master branch [Build Status] (https://travis-ci.org/JujaLabs/teams)

Technical specification: link

For using MongoDB in local machine

  1. Install MongoDB

  2. Set up the MongoDB environment. MongoDB requires a data directory to store all data. MongoDB’s default data directory path is \data\db. Before the first usage, you should create this folder. For more information visit https://docs.mongodb.com/getting-started/shell/installation/

  3. In terminal window go to folder \MongoDB\Server\3.2\bin

  4. Launch the server Mongo with command mongod

  5. In another terminal window go to the same folder \MongoDB\Server\3.2\bin

  6. Launch the MongoDB shell with command mongo

  7. You can use command help to see available commands

  8. Create user in the admin db

    use admin
    db.createUser(
    {
        user: "root",
        pwd: "root",
        roles: [{role: "root", db: "admin"},
                {role: "userAdminAnyDatabase", db: "admin"}]
    }
    )
    
  9. Create or switch to the db teams

    use teams
    
  10. Create user in the teams db

    db.createUser( { user: "root", pwd: "root", roles: [{role: "dbAdmin", db: "teams"}] } )

Using MongoDB for Linux users (local machine install)

  1. Install MongoDB using your distro package manager. For example, in Fedora: sudo dnf install mongodb-org
  2. Start mongodb: sudo systemctl start mongod
  3. Check status (should be "active"): sudo systemctl status mongod
  4. If you want to start mongodb every time with system: sudo systemctl enable mongod
  5. Run mongo shell in console with: mongo
  6. Do steps 8-10 from section above

For building and launching application

  1. In the terminal window go to the project folder, use gradle wrapper script to start build process.

    On Unix-like (Linux or MacOS) using the gradlew shell script - sh gradlew clean build

    On Windows using the gradlew.bat batch file - gradlew clean build

    Wait for message "BUILD SUCCESSFUL" means that build is successful :)

  2. You can find the built jar-file in teams/build/libs, go to that folder

  3. Use command java -jar teams-1.jar

  4. The string "Started Teams" means the successful start. Default port – 8080.

  5. Open one of the helper programs to create and test custom HTTP requests-responses, e.g. "Advanced REST client"

  6. Choose the tab "Request", content-type - application/json.

  7. Follow the API. Important: the first - to add something, then - you can get it.

API

REST APIs

teams's People

Contributors

ivshapovalov avatar asidun avatar olgakulikova avatar petrokramar avatar danilkuznetsov 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.