Skip to content

This application was developed as part of a College project. In this app our team used Node.js with several libraries (express, bcryptjs, axios...) on the backend. The frontend was built in react-native and it consumes the backend via HTTP requests to the API.

Notifications You must be signed in to change notification settings

lucasfdsilva/emTeam-board-game-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile Application Available at:

Google Play: https://play.google.com/store/apps/details?id=com.emteam.boardgeek
Aptoide App Store (Most up-to-date version): https://boardgeek.en.aptoide.com/

Run Backend Locally:

cd backend
npm install
npm run devStart
Application will listen to Port 5000 if no System Env is configured.

Run Mobile Locally:

npm install --global expo
cd frontend-mobile
npm install
npm run start

Run Web App Locally:

cd frontend-web
npm install
npm run start

Backend API Methods

Users

Register User

Route: '/users/register'

Method: POST

data: { "firstName": "", "lastName": "", "email": "", "password": "" }
Response: { "message": "", "user": { "firstName": "", "lastName": "", "email": "", "password": "" }

Login User

Route: '/users/login'

Method: POST

data: { "email": "", "password": "" }
Response: { "message": "", "accessToken": "" }

Forgot Password

Route: '/users/forgot_password'

Method: POST

data: { "email": "" }
Response: { "message": "", "token": "", "expiresAt": "" }

Reset Password

Route: '/users/reset_password'

Method: POST

data: { "email": "", "token": "", "password": "" }
Response: { "message": "User password updated successfully" }

Update User Profile

Route: '/users/update'

Method: PUT

data: { "id": "", "email": "", "token": "", "password": "" }
Response: { "message": "User profile updated successfully" }

Delete User Profile

Route: '/users/delete'

Method: DELETE

data: { "id": "", }
Response: { "message": "User profile deleted successfully" }

Verify User

Route: '/users/:verificationToken'

Method: GET

Response: { "message": "User Email Verified Succesfully" }

Events

Create Event

Route: '/events/create'

Method: POST

data: { "id": "", "eventName": "", "game": "", "location": "", "numOfPlayers": "", "eventDate": "", "duration": ""
Response: { "message": "Event Created Successfully!" }

Get All Events

Route: '/events'

Method: GET

Response: { "_id": "", "host": "", "eventName": "", "game": "", "location": "", "numOfPlayers": "", "eventDate": "", "duration" "", "__v": "" }

Get Event

Route: '/events/id'

Method: GET

data: { "id": ""
Response: { "_id": "", "host": "", "eventName": "", "game": "", "location": "", "numOfPlayers": "", "eventDate": "", "duration": "", "__v": "", "verified": "", "_id": "", "firstName": "", "lastName": "", "email": "", "password": "", "verificationToken": "", "createdAt": "", "__v": "", "passwordRestExpires": "", "passwordResetToken": "" }

Update Event

Route: '/events/update'

Method: PUT

data: { "id": "", "eventName": "", "game": "", "location": "", "numOfPlayers": "", "eventDate": "", "duration": ""
Response: { "message": "Event Updated Successfully!" }

Delete Event

Route: '/events/delete'

Method: DELETE

data: { "id": "",
Response: { "message": "Event Deleted Successfully!" }

About

This application was developed as part of a College project. In this app our team used Node.js with several libraries (express, bcryptjs, axios...) on the backend. The frontend was built in react-native and it consumes the backend via HTTP requests to the API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages