Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#TeamProject - Week#5 #17

Open
haydanu opened this issue Nov 25, 2019 · 0 comments
Open

#TeamProject - Week#5 #17

haydanu opened this issue Nov 25, 2019 · 0 comments

Comments

@haydanu
Copy link
Member

haydanu commented Nov 25, 2019

React Redux

Team 1

@lighteagle
@Dianpuspitasari86
@Taufik66645
@fariisiibrahiim -


Team 2

@iqbalelyas
@dannyGan
@sharfinaega
@iqbalmmm


Team 3

@deannakazawa
@alhajiry
@robyafrizal
@Zakintaliban


Task

  • Create your-team-project-name in GitHub Organization
  • deploy to Netlify

Install dependencies needed to support this project

  • axios
  • react-router-dom
  • redux
  • react-redux
  • and anything you need

Rules

  • Can Register and Login
  • Display User Data
  • Use This API
  • React Styling

API Endpoints

HTTP Routes Description
POST /user/register to add new user
POST /user/login to login
GET /user/logout to logout
GET /user/all-user to get all user

USAGE

Please install axios first before using it

  • ADD NEW USER
axios.post(`https://cobacoba-hayepe.herokuapp.com/user/register`, {
    {
	mobileNumber: your_number,
	firstName: your_first_name,
	lastName: your_last_name,
	dateOfBirth: your_birth_data, // can accept all data 06/07/1993 or 1993/12/01
	gender: your_gender, // male or female
	email: your_email,
	password: your_password
}
})
      .then(result => console.log(result))
      .catch(error => console.log(error));
  };
  • LOGIN USER
axios.post(`https://cobacoba-hayepe.herokuapp.com/user/login`, {
    {
	email: your_email,
	password: your_password
}
})
      .then(result => console.log(result))
      .catch(error => console.log(error));
  };
  • LOGOUT USER
axios.get(`https://cobacoba-hayepe.herokuapp.com/user/logout`)
      .then(result => console.log(result))
      .catch(error => console.log(error));
  };
  • GET ALL USER
axios.get(`https://cobacoba-hayepe.herokuapp.com/user/all-user`})
      .then(result => console.log(result))
      .catch(error => console.log(error));
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant