This project, called frontend, is connected to a backend API service that you must also launch locally.
Backend Project: https://github.com/OpenClassrooms-Student-Center/Billed-app-FR-back
For good organization, you can create a bill-app folder in which you will clone the backend project and subsequently, the frontend project:
- Clone the backend project into the bill-app folder:
$ git clone https://github.com/OpenClassrooms-Student-Center/Billed-app-FR-Back.git
bill-app/
- Billed-app-FR-Back
Clone the frontend project into the bill-app folder:
$ git clone https://github.com/OpenClassrooms-Student-Center/Billed-app-FR-Front.git
bill-app/
- Billed-app-FR-Back
- Billed-app-FR-Front
Follow the instructions in the README of the backend project.
Go to the cloned repo:
$ cd Billed-app-FR-Front
Install the npm packages (described in package.json
):
$ npm install
Install live-server to launch a local server:
$ npm install -g live-server
Launch application :
$ live-server
Then go to the address: http://127.0.0.1:8080/
$ npm run test
Install jest-cli :
$npm i -g jest-cli
$jest src/__tests__/your_test_file.js
http://127.0.0.1:8080/coverage/lcov-report/
Vous pouvez vous connecter en utilisant les comptes:
utilisateur : [email protected]
mot de passe : admin
utilisateur : [email protected]
mot de passe : employee