Round Controller built with Android studio ,Node and MongoDB.
REST Server with NodeJS and Express provides access to resource and REST client accesses and modifies the resources using HTTP protocol. MongoDB stores the data.
- Android Studio
- Node and npm
- MongoDB: Make sure you have your own local or remote MongoDB database URI configured in
/db.js
- Clone the repository:
git clone https://github.com/Fezaii/RoundController.git - Install all packages:
npm install - Create your database MongoDb (admin) , on mongodb shell:
use admin - Add a new user(admin) and password(admin) for your database(admin) :
db.createUser( { user: "admin", pwd: "admin", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] } ) - Insert the first Admin for the Android App into your database(admin) :
db.admin.insert( { "name" : "yourname", "email" : "yourmail", "password" : "yourpassword", "role" : "admin" } ) - Verify the own MongoDB URI in
/db.js:mongodb://admin:admin@127.0.0.1:27017/admin - Start the server:
node server.js - Make sure the server is runnig correctly without errors.
- Place your pc IP in
/LoginActivity.javawith nameURL - Make sure the device is connected to the same Network of your PC
- Run the Android App
- Connect with your email "yourmail" and password "yourpassword"