Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #44 from Code4Nepal/42_np
Browse files Browse the repository at this point in the history
doc: update README #42
  • Loading branch information
tux4 authored Sep 19, 2018
2 parents 3b6f380 + 40f1eb5 commit c1cccd7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Please provide feedbacks here - https://goo.gl/forms/XfIMqXmRMp3MMMMh2 . For bug

## Development Notes

We use docker during development as well as for production use.
We use docker during development as well as for production use. If you're only working on front-end components, you do not need to set up docker environment. See the frontend specific docs [parijat-frontend-docs](parijat-frontend/README.md)

Please follow the official docs to install [docker](https://docs.docker.com/install/) and [docker-compose](https://docs.docker.com/compose/install/) on your system.

Expand All @@ -59,7 +59,7 @@ There's also a nginx service that acts as a reverse proxy to the core services,

#### Notes

* You will need to prefix the docker commands with *sudo*, if you haven't added your user to the *docker* group.
* You will need to prefix the docker commands with *sudo*, if you haven't added your user to the *docker* group (https://docs.docker.com/install/linux/linux-postinstall/).

* If you are a developer running the elasticsearch instance here for testing, please read through the elasticsearch-specific [akshara docs](elasticsearch/README.md), especailly the [usage](elasticsearch/README.md#usage) section. Our elasticsearch setup makes certain assumptions that you need to follow while indexing documents, to ensure that all search features are available.

Expand Down
56 changes: 47 additions & 9 deletions parijat-frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,59 @@
# पारिजात
# Sangraha Frontend

Super performant `Material` app for preact world using [preact-material-components](https://github.com/prateekbh/preact-material-components)
Sangraha frontend is a single page application created using Preact. Preact is a lightwright React alternative.

## CLI Commands
## Development Instructions

``` bash
# install dependencies
### Pre-requisites

Node.js is required to develop the frontend. To install Node.js and npm (Node Package Manager) either follow the [official instructions](https://nodejs.org/en/) or [use nvm](https://github.com/creationix/nvm).

#### Using nvm

Install `nvm` following the instructions here [nvm installation](https://github.com/creationix/nvm).

Then install the stable version of `node` and `npm`. At the time when this was written the `LTS` version for Node was `8.12.0`.

```bash
nvm install 8.12.0
```

### Install Dependencies

Head to the directory where this README.md file is located and install all development dependencies using npm:

```bash
npm install
```

This downloads all the dependencies locally in `node_modules` directory.

# serve with hot reload at localhost:8080

### Start Development Server

Start the development server using the following command:

```bash
npm run dev
```

This will start local development server at `localhost:8080` . The development server has hot-reloading enabled and any changes reflect in the browser once the files are saved.


# build for production with minification
### Build for production

To build the application for deployment (minified static files), use the following:

```bash
npm run build
```

# test the production build locally
### Start Production Server

```bash
npm run serve
```

For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).
## Preact-CLI

The frontend was bootstrapped using Preact-CLI. For further instructions, and detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md).

0 comments on commit c1cccd7

Please sign in to comment.