Skip to content

Commit

Permalink
Updated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
rakibul-islam-raju committed Jul 12, 2023
1 parent c0381df commit 4f77519
Showing 1 changed file with 47 additions and 22 deletions.
69 changes: 47 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[প্রজেক্ট সম্পর্কে বিস্তারিত](https://docs.google.com/document/d/1GiPgOxU19B5d-DzzesWb6RXrlbmu5xDvSKjMW0vDsC8/edit?usp=sharing)

# Qard al-Hasan

## What is Qard al-Hasan?

Qard al-Hasana is an interest free loan. You will pay back exactly the amount we lend you in installments (instalments), no service charges.
Expand All @@ -19,51 +20,75 @@ Qard al-Hasana is an interest free loan. You will pay back exactly the amount we
We want to create such a platform so that anyone can manage Qard al-Hasana project in any part of the country using this platform.
[details about the project](https://docs.google.com/document/d/1GiPgOxU19B5d-DzzesWb6RXrlbmu5xDvSKjMW0vDsC8/edit?usp=sharing)

# INSTALLATION

Clone the project to your local machine.

## Frontend

# INSTALLATION
Change directory into the "frontend" folder and create a .env file. Copy and paste the codes from the .env.examples file into the .env file.

clone the project to your local machine
Install dependencies:

run
```
yarn install
```
or
```
npm install
```
- Using Yarn (recommended) - `yarn`
- Using npm - `npm i`

Start the development server:

- Using Yarn (recommended) - `yarn dev`
- Using npm - `npm run dev`

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Backend

### Run backend in a virtual environment

Change directory into the "backend" folder and create a .env file. Copy and paste the codes from the .env.examples file into the .env file.

Create virtualenv:

navigate to
```
localhost:3000
python3 -m venv <venv>
```
create a .env file
copy and paste the codes in the .env.examples file to the .env file

## Backend
Activate the virtualenv:

- Linux/Mac - `source <venv>/bin/activate`
- Windows - `<venv>\Scripts\Activate`

Install dependencies, migrate database and run the project:

```
pip install -r requirements.txt
python manage.py migrate
python manage.py prepare_org
python manage.py runserver
```
Run backend with docker

Activate pre-commit hook:

```
pre-commit install
```

### Run backend with docker

```
cd backend
docker compose up
```

### API doc:

[localhost:8000](http://localhost:8000/)
get access token: [localhost:8000/api/v1/auth/login/](localhost:8000/api/v1/auth/login/)
username: admin
password: admin
[localhost:8000](http://localhost:8000/)
get access token: [localhost:8000/api/v1/auth/login/](localhost:8000/api/v1/auth/login/)
username: admin
password: admin
copy the access token and use "Authorize" buton for token authentication. Now you can access other API.

## How to contribute

About this project: [link](https://docs.google.com/document/d/1GiPgOxU19B5d-DzzesWb6RXrlbmu5xDvSKjMW0vDsC8/edit?usp=sharing)
Task list: [GitHub Link](https://github.com/users/harunurkst/projects/1)
About this project: [link](https://docs.google.com/document/d/1GiPgOxU19B5d-DzzesWb6RXrlbmu5xDvSKjMW0vDsC8/edit?usp=sharing)
Task list: [GitHub Link](https://github.com/users/harunurkst/projects/1)
Join to our Discord channel: [Invitation link](https://discord.gg/9dWdP8zM4K)

0 comments on commit 4f77519

Please sign in to comment.