Scaffold Meteor + Vue
Test Endpoints
Connect
- Connect external host
ddp --host 34.72.222.234 --port 80 connect
Register Player
- Mac
ddp --host 34.72.222.234 --port 80 call 'playerSignup' '{"firstName":"Irving","lastName":"Guerra","username":"IrvingTsukune","email":"iguerrav1500@alumno.ipn.mx","gender":"male","birthday":"1997-09-19","phone":{"lada":"+52","number":5531044967}}'
-Windows
ddp --host 34.72.222.234 --port 80 call playerSignup {"\firstName"\:"\Irving"\,"\lastName"\:"\Guerra"\,"\username"\:"\IrvingTsukune"\,"\email"\:"\iguerrav1500@alumno.ipn.mx"\,"\gender"\:"\male"\,"\birthday"\:"\1997-09-19"\,"\phone"\:{"\lada"\:"\+52"\,"\number"\:5531044967}}
Show Players
ddp --host 34.72.222.234 --port 80 subscribe 'players'
Send Friend Request -Mac
ddp --host 34.72.222.234 --port 80 call 'sendFriendRequest' '{"idSender":"LTJ8ihtN8armEJZz2","idTargetPlayer":"oPD23cdJcjJngbuSG"}'
-Windows
ddp --host 34.72.222.234 --port 80 call sendFriendRequest {"\idSender"\:"\LTJ8ihtN8armEJZz2"\,"\idTargetPlayer"\:"\oPD23cdJcjJngbuSG"\}
Accept Friend Request
ddp --host 34.72.222.234 --port 80 call answerFriendRequest "MARMMFc7in9YdNxXK"
Show Friend Request
ddp --host 34.72.222.234 --port 80 subscribe 'friendRequest' 'oPD23cdJcjJngbuSG'
Description
Web app built with Meteor and Vue, include:
- Authentication
- Users management
Supported Platforms
- macOS 10.12+
- Linux
- Windows 10
System Requirements
- Node 12+ download here
- Yarn 1.16.0+
- Meteor 1.10.1 Installation
- Mongo 4.0+ and Robo 3T download here
- Note: In some cases it is necesary to disable antivrus in order to works SMTP Server
Installation
- Clone the last version of repository here
- Verify you are on branch dev
Database configuration with terminal
Note: For Windows Systems verify that mongo is configured as environment system variable.
- Open a terminal in the project root
- Restore the database with:
mongorestore --db scaffold ./database/scaffold
The following commands are only for support:
- Export a backup of the database (data exported as formats BSON and JSON):
mongodump --db scaffold --out ./database/
- Import more data of a specific collection to the database:
mongoimport --db scaffold --collection <collection_name> <path_collection_json>
- Export data of a specific collection from the database:
mongoexport --db scaffold --collection <collection_name>
Installing dependencies
- Run the following commands to install the dependencies:
yarn
Configure environment variables file
Go to ./settings/
and copy settings-development-example.json
to settings-development.json
and modify the following:
- STORAGE_PATH to your path project in your PC/MAC.
Running project
On Mac OS X and Linux
- Run the following commands:
yarn run:mac
On Windows
- Run the following commands:
SET MONGO_URL=mongodb://localhost:27017/scaffold
yarn run:windows
Note: You can configure your Jetbrains IDE to run the project from the IDE execution button.
Audit Code
Requirements
- Sonar Qube 7.8 (since require Java 8) download here
- Sonar Scanner download here
- Copy sonar-project.properties.example file to a new file in the same path without .example and adjust sonar.sources option according to your path project in your PC or Mac.
- Optional: You may install also Sonar Lint Plugin for Jetbrains to audit code in your IDE.
You have to start SonarQube server and then configure Sonar Scanner as system environment variable. Once all this done, execute the next command in the root project:
sonar-scanner