Skip to content

Commit 0d47835

Browse files
committed
README is not finished yet
1 parent 2ee2836 commit 0d47835

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

3+
# files to ignore
4+
/src/data/apiConfig.js
5+
/src/firebaseConfig/FireBase.js
6+
37
# dependencies
48
/node_modules
59

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Interaction Programing - Project "Bookligo" React
2+
This repository contains the code for project "Bookligo", which focuses on the Model-View-Controller paradigm using React Framework.
3+
4+
## The API in this project
5+
This application uses the [Google Books API](https://developers.google.com/books/docs/v1/using).
6+
7+
8+
## Understanding the code
9+
* [index.html](/index.html) - The default page for this application.
10+
* [src/data/BookligoModel.js](/src/data/BookligoModel.js) - This is a skeleton for the model of the
11+
application, it supports the functionality needed (number of books, total price of books, etc.). It also
12+
contains API methods that fetches the needed data for this application. For example, getAllBooks function is implemented using `fetch()` and Observer pattern is also implemented.
13+
* [src/index.js](/src/index.js) - This is where React is started and where it calls the App - the root component.
14+
* [src/index.css](/src/index.css) - Contains global styles for this application.
15+
* [src/App.js](/src/App.js) - This is the overall code (root component) of the application. It is responsible for initial setup of the
16+
App.
17+
* [src/Components/Book.js](/src/Components/Book.js), [src/Components/Books.js](/src/Components/Books.js) etc. - contain the `.js` and `.css` file for each component.
18+
* [src/DetailsView.js](/src/DetailsView.js), [src/SearchView.js](/src/SearchView.js) etc. - contain the `.js` and `.css` file for each view containing certain components.
19+

src/firebaseConfig/FireBase.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import firebase from "firebase";
2+
3+
// Your web app's Firebase configuration
4+
const firebaseConfig = {
5+
apiKey: "AIzaSyCeUNZywlYn1RcuLmxml8s51zboRcf2njE",
6+
authDomain: "bookligo-2b01b.firebaseapp.com",
7+
databaseURL: "https://bookligo-2b01b.firebaseio.com",
8+
projectId: "bookligo-2b01b",
9+
storageBucket: "bookligo-2b01b.appspot.com",
10+
messagingSenderId: "612213095253",
11+
appId: "1:612213095253:web:1d591e9a7a235d833acddc",
12+
measurementId: "G-JG2WBPTWH8"
13+
};
14+
// Initialize Firebase
15+
const FireBase = firebase.initializeApp(firebaseConfig);
16+
export default FireBase;

0 commit comments

Comments
 (0)