|
1 | | -[](http://waffle.io/quran/quran.com-frontend) |
2 | | -[](http://waffle.io/quran/quran.com-frontend) |
3 | | -[](http://waffle.io/quran/quran.com-frontend) |
4 | 1 |
|
| 2 | +# Quran.com |
5 | 3 |
|
6 | | -## Quran.com |
7 | 4 | This is the project soon to be the Quran.com facing site. This is built in |
8 | 5 | Reactjs + Redux + Expressjs + Webpack. It is isomorphic (javascript shared |
9 | 6 | between both the server and the client) for SEO reasons. |
10 | 7 |
|
11 | | -[](https://david-dm.org/quran/quran.com-frontend) |
| 8 | +[](http://waffle.io/quran/quran.com-frontend) |
| 9 | +[](http://waffle.io/quran/quran.com-frontend) |
| 10 | +[](http://waffle.io/quran/quran.com-frontend) |
| 11 | + |
| 12 | + |
| 13 | +[](https://david-dm.org/quran/quran.com-frontend) [](https://david-dm.org/quran/quran.com-frontend#info=devDependencies) |
12 | 14 | [](https://codeclimate.com/github/quran/quran.com-frontend) |
13 | 15 |
|
14 | | -#### Getting started |
| 16 | +## Getting started |
15 | 17 | Simply clone this repo, then run `npm install` to install all the required node_modules. |
16 | 18 | From there, you are ready to go! |
17 | 19 |
|
18 | | -#### Developing |
19 | | -To start the app, run `npm run dev` which will |
20 | | -run both the server and the client (webpack) to compile upon edits. Go to localhost:8001 in your browser, not 8000 (that is just the express server). |
| 20 | +## Developing |
| 21 | +Unless you have the backend API running locally, you will need to update the `API_URL`, in `development.env` file, from `localhost` to `api.quran.com`. Leave the port number same. |
| 22 | + |
| 23 | +To start the app, run `npm run dev` which will run both the server and the client (webpack) to compile upon edits. Go to http://localhost:8001 in your browser, not 8000 (that is just the express server). |
21 | 24 |
|
22 | | -#### Tests |
| 25 | +## Tests |
23 | 26 | Run `npm run test:watch` to run the tests locally and watching. Otherwise use `npm run test` for CI level tests. |
24 | 27 |
|
25 | 28 | We also have nightwatch function tests. You can install nightwatch globally and can run tests like this: |
26 | 29 | ``` |
27 | 30 | nightwatch --test tests/functional/specs/Index_spec.js |
28 | 31 | ``` |
29 | 32 |
|
30 | | -#### Backend |
| 33 | +## Backend |
31 | 34 | Current at: https://github.com/quran/quran-api-rails |
32 | 35 | DB is private, message me for acceess. |
33 | 36 |
|
34 | | -#### How to contribute |
| 37 | +## How to contribute |
35 | 38 | Fork this repo, then create a PR for specific fixes, improvements, etc. We trust that |
36 | 39 | you will not steal this, this is at the end of the day for the sake of Allah and we |
37 | 40 | all have good intentions while working with this project. But I must stress, stealing |
38 | 41 | this is unacceptable. |
39 | 42 |
|
40 | | -#### Design |
| 43 | +## Design |
41 | 44 | We currently use InvisionApp. Again, contact me if you'd like access to it. |
42 | 45 |
|
43 | | -#### Making sure main.js is small |
| 46 | +## Making sure main.js is small |
44 | 47 | Follow: https://www.npmjs.com/package/webpack-bundle-size-analyzer |
45 | 48 | ``` |
46 | 49 | env NODE_ENV=development webpack --json > bundle-stats.json |
47 | 50 | subl bundle-stats.json #so that you can the output |
48 | 51 | analyze-bundle-size bundle-stats.json |
49 | 52 | ``` |
50 | 53 |
|
51 | | -###### [View project issues on waffle.io...](https://badge.waffle.io/quran/quran.com-frontend) |
| 54 | +## [View project issues on waffle.io...](https://badge.waffle.io/quran/quran.com-frontend) |
0 commit comments