Giter VIP home page Giter VIP logo

gamification's Introduction

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 gamification

    use gamification
    
  10. Create user in the gamification db

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

For building and launching application

  1. In the terminal window go to the project folder, use command gradle clean build. "BUILD SUCCESSFUL" means that build is successful :)
  2. You can find the built jar-file in gamification/build/libs, go to that folder
  3. Use command java -jar gamification-1.jar
  4. The string "Started Gamification" 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

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.