Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,24 @@ typings/
# dotenv environment variables file
.env

# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1,918 changes: 1,859 additions & 59 deletions README.md

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions README.old.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# react-kickass-exercice

# Consignes

## 1. Forker le projet

## 2. Créer votre pull request avec nom prénom

## 3. Cloner votre fork

## 4. Implémenter les fonctionnalités suivantes :

A partir d'un "create-react-app", vous devez implémenter un back-office permettant de :

* lister les users
* créer un user
* modifier un user
* supprimer un user

* lister les projets
* créer un projet en lien avec un user
* modifier un projet
* supprimer un projet

Le tout doit être connecté au backend servi sur https://kickass-sdw-3a.herokuapp.com/api.
Vous trouverez les specs de l'api kickass-sdw-3a ci-dessous :

------

## API

* End point : https://kickass-sdw-3a.herokuapp.com/api

* Format d'échange : JSON

### get users : GET /api/users

### create user : POST /api/user

* Request body :

```
{
'age': Number,
'name': String,
'type': String
}
```

### update user : PUT /api/user/:id

* Request body :

```
{
'age': Number,
'name': String,
'type': String
}
```

### delete user : DELETE /api/user/:id

### get projects : GET /api/projects

### create project : POST /api/project

* Request body :

```
{
'title': String,
'description': String
'creator': String
}
```

### update project : PUT /api/project/:id

* Request body :

```
{
'title': String,
'description': String
}
```

### delete project : DELETE /api/project/:id

### get user projects : GET /api/user/:id/projects

## Références

* https://github.com/github/fetch
* https://reacttraining.com/react-router/web/guides/quick-start
* https://reacttraining.com/react-router/web/example/basic




Loading