Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
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
32 changes: 32 additions & 0 deletions BACKEND.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Sangraha Backend

## Development Instructions

### Pre-requisites

We use docker to setup backend development. 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. If you're only working on front-end components, you do not need to set up docker environment.

### Build

To build the akshara project locally, use the following command (from the project root directory):

```bash
docker-compose up
```

This will start all of the akshara services. Full list of those services:

* Frontend, for the main site (http://localhost:8080)
* Elasticsearch, for the search backend and datastore (http://localhost:9200)
* Kibana, for exploring the elasticsearch data (http://localhost:5601)

There's also a nginx service that acts as a reverse proxy to the core services, and provides access to them over the web:

* Frontend, at http://localhost/
* Elasticsearch, at http://localhost/es/

### Notes

* 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.
19 changes: 19 additions & 0 deletions PRODUCTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Sangraha Production

## Frontend

### Build for production

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

```bash
npm run build
```

### Start Production Server

```bash
npm run serve
```

## Backend
50 changes: 18 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
![alt text](https://raw.githubusercontent.com/Code4Nepal/akshara-project/master/parijat-frontend/src/assets/logo.png "सङ्ग्रह")

### सङ्ग्रह | [sangraha.org](http://sangraha.org)
### सङ्ग्रह | [sangraha.org](https://sangraha.org)


<!-- toc -->

- [Introduction](#introduction)
- [Feedbacks and Bug Report](#feedbacks-and-bug-report)
- [Development Notes](#development-notes)
+ [Notes](#notes)
- [Getting Started](#getting-started)
+ [Contribution Guidelines](#contribution-guidelines)
+ [Frontend](parijat-frontend/README.md)
+ [Backend](/BACKEND.md)
+ [Production](/PRODUCTION.md)
- [Plan](#plan)
- [Feedbacks and Bug Report](#feedbacks-and-bug-report)
- [Mailing List](#mailing-list)
- [About Code for Nepal - Bay Area](#about-code-for-nepal---bay-area)
- [License](#license)
Expand All @@ -36,40 +39,21 @@ The सङ्ग्रह website will be equipped with the following features:
- Side-by-side translations of texts in different languages
- A dictionary, especially for materials in non Nepali languages so that they are accessible to all Nepali speakers

## Feedbacks and Bug Report
Please provide feedbacks here - https://goo.gl/forms/XfIMqXmRMp3MMMMh2 . For bug reports create a Github issue here - https://github.com/Code4Nepal/akshara-project/issues


## Development Notes

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.

Then a simple `docker-compose up` (from the project root directory) will start all of the akshara services. Full list of those services:
## Getting Started

* Frontend, for the main site (http://localhost:8080)
* Elasticsearch, for the search backend and datastore (http://localhost:9200)
* Kibana, for exploring the elasticsearch data (http://localhost:5601)

There's also a nginx service that acts as a reverse proxy to the core services, and provides access to them over the web:

* Frontend, at http://localhost/
* Elasticsearch, at http://localhost/es/

#### Notes

* 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.
#### Contribution Guidelines

- Fork this repository.
- Create a branch to work on open issues in [Issues](https://github.com/Code4Nepal/akshara-project/issues).
- Commit your changes and push your new branch to GitHub.
- Create a pull request. Please include your issue # along with a brief desription of your changes.

## Plan
- ☑ Phase 1: Minimal Viable Product (MVP) Implementation
- ☑ Basic MVP codebase
- ☑ Major platform decisions
- ☑ Add first contents - poems in Nepali language
- ☑ Launch first version at [सङ्ग्रह](http://sangraha.org)
- ☑ Launch first version at [सङ्ग्रह](https://sangraha.org)

- ☐ Phase 1.5: Bug Fixes and Progressive Enhancement
- ☐ Bug fixes
Expand All @@ -87,6 +71,9 @@ There's also a nginx service that acts as a reverse proxy to the core services,
- ☐ Build community of content contributors and curators
- ☐ Market the product for wider adoption

## Feedbacks and Bug Report
Please provide feedbacks here - https://goo.gl/forms/XfIMqXmRMp3MMMMh2. For bug reports create a Github issue here - https://github.com/Code4Nepal/akshara-project/issues

## Mailing List
We use Google Groups to co-ordinate day-to-day operations, planning and development work. If you are interested in being part of the community please consider joining the group - https://groups.google.com/forum/#!forum/akshara-development-list . Click 'Apply for Membership' to join the list.

Expand All @@ -96,5 +83,4 @@ Code for Nepal's Bay Area Chapter has been active since January 2017 and focuses

## License

The code is provided under the Free and Open Source software license [GNU GPL 3.0](LICENSE) . Except where otherwise noted all content is licensed under [CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).

The code is provided under the Free and Open Source software license [GNU GPL 3.0](LICENSE) . Except where otherwise noted all content is licensed under [CC BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
16 changes: 1 addition & 15 deletions parijat-frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,6 @@ 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

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

```bash
npm run build
```

### Start Production Server

```bash
npm run serve
```

## 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).
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).