Its a shopping cart application which lets user perform operation like signin, signup, view profile, edit profile, select the items they would like to purchase, and be able to pay for their order.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
- Braintree - Credit Payment System
- Android Studio
- Node.js
- Java
There are two folders to this project
- ProfileApplication - It contains an android project.
- webapp - Nodejs web application
A step by step series of examples that tell you how to get a development env running
Clone the repo and open ProfileApplication folder inside android studio.
Application is hosted on a heroku app server. Domain Link: https://profile-application.herokuapp.com/
All the routes takes header as: Content-Type: application/json
-
/auth/signin - post This api takes two parameters.
- username
- password this api check for the user's authentication and returns the jwt token.
-
/auth/signup - post This api takes following parameters.
- firstName
- lastName
- email - unique
- username - unique
- password - more than 7 characters
- city
- gender It check for the user. If user already present then it won't sign up with that username. Once all the criteria are met it signup the new user and returns the jwt token
-
/user/profile - get header: Authorization: Bearer Token It check for the provided user token and return the user data.
-
/user/edit - post Api takes following parameters
- firstName
- lastName
- city
- gender It updates the user data for the logged in user. If the request is successful it returns with the success message.
Postman Collection Link: https://www.getpostman.com/collections/db19f626a527b73a1c43
It is hosted on Heroku Running on following dependencies: Node: 10 Express: 4.17.1 Mongoose: 4.4
Web application Link: https://profile-application.herokuapp.com/
Our database is hosted on mlab. We are using MongoDB for the application. User Model: - userId: auto-generated in numeric values - firstName: String - lastName: String - email: String [requires valid email id format, unique parameter] - username: String [unique parameter] - password: Stored using hashing. - salt: String - role: String [default: User] - city: String - gender: String - created: Date [default: Date.now]