- User login, register or logout
- Set or update avatar, username, name or bio
- Read user profile by username
- Search user by username or name
- Delete user account
- Follow or unfollow user
- Read user followers or followings
- Create post image or video
- Update caption
- Feeds
- Read single post
- Read user posts
- Search posts by hashtag
- Delete post
- Create or update comment
- Read comments by post
- Delete comment
- Like or unlike post
- Read post likes
- Read my posts activities or users I've followed
- Mention in caption by other user
- Mention in comment by other user
- Commented in my post
- Followed by other user
- Liked my post by other user
- Push notifications
- Read notifications
- Node.js
- npm
- MongoDB
Before running the Majapahit, ensure you have node + npm installed and run: $ npm install
-
Change
oneSignalKey: '[YOUR ONESIGNAL KEY]'in /app/config.js -
Change
oneSignalAppID: '[YOUR ONESIGNAL APP ID]'in /app/config.js -
Change
firebaseDatabase: 'https://[YOUR PROJECT ID].firebaseio.com/'in /app/config.js -
Change
var firebaseServiceAccount = require('[PATH/TO/serviceAccountKey.json]')in /app/controllers/UserController.js
-
Change
firebaseToken: '[FIREBASE TOKEN FROM CLIENT]'in /test/config.js -
Change
device: '[ONESIGNAL player_id FROM CLIENT]'in /test/config.js -
Change
firebaseTokenSecondUser: '[FIREBASE TOKEN FROM CLIENT FOR SECOND USER]'in /test/config.js -
Change
deviceSecondUser: '[ONESIGNAL player_id FROM CLIENT FOR SECOND USER]'in /test/config.js
Before running the Majapahit, make sure MongoDB is running
$ node app.js
$ npm run test