Skip to content

Commit

Permalink
Merge pull request #2 from IntersectMBO/update-readme
Browse files Browse the repository at this point in the history
fix: Update readme
  • Loading branch information
vpaunovic authored Sep 17, 2024
2 parents ade20b3 + 48339d3 commit d37285d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🚀 PDF (Proposal Discussion Forum) backend
# 🚀 PDF (Proposal Discussion Forum)

Welcome to the official repository for the PDF backend.

Expand All @@ -8,6 +8,7 @@ Welcome to the official repository for the PDF backend.
- [Introduction](#introduction)
- [Prerequisites](#prerequisites)
- [Tech stack:](#tech-stack)
- [pdf-ui package](#pdf-ui-package)
- [Backend](#backend)
- [Database](#database)
- [Getting started](#getting-started)
Expand Down Expand Up @@ -36,6 +37,10 @@ This document serves as a comprehensive guide for setting up the backend and dat

**Container:** [Docker](https://docs.docker.com/get-started/)

### pdf-ui package

The `@intersect.mbo/pdf-ui` is a React.js package that includes all the necessary logic and UI components required for the operation of a proposal discussion forum.

### Backend

Our backend is powered by Strapi, a versatile headless CMS built on Node.js. It offers an intuitive admin panel, coupled with extensive RESTful and GraphQL API support, enabling efficient content management and API development.
Expand All @@ -54,13 +59,13 @@ Before you begin setting up the application, you'll need to clone the repository
- Navigate to the directory where you want to store the project.
- Run the following command to clone the repository:
```
git clone https://github.com/IntersectMBO/govtool-proposal-discussion.git
git clone https://github.com/IntersectMBO/govtool-proposal-pillar.git
```
2. **Navigate to the Project Directory:**
- After cloning, change into the project's root directory:
```
cd govtool-proposal-discussion
cd govtool-proposal-pillar
```
This directory contains all the files you need to set up the backend.
Expand Down Expand Up @@ -118,6 +123,8 @@ By following these steps, you can quickly get your full-stack application runnin
### Additional Information
For more detailed information, check the README file in the backend folder:
For more detailed information, check the README files in the corresponding folders:
- [Backend setup](./backend/README.md) - Detailed instructions for setting up the backend part of the application.
- [pdf-ui](./pdf-ui/README.md) - Detailed information regarding the PDF-UI package setup and usage.
4 changes: 2 additions & 2 deletions pdf-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default function Page() {

return (
<ProposalDiscussion
pdfApiUrl="https://xxxxx"
walletAPI={{
...context,
...walletApi,
Expand Down Expand Up @@ -80,6 +81,7 @@ export const ProposalDiscussionPillar = () => {

return (
<ProposalDiscussion
pdfApiUrl="https://xxxxx"
walletAPI={{
...context,
...walletApi,
Expand Down Expand Up @@ -133,5 +135,3 @@ Before starting, please ensure you have the following:
## Running locally

To launch the package, it is necessary to have an application (for example, a Next.js app) into which this package is imported. This wrapper application must provide wallet connectivity to supply the wallet API to the package.

In the wrapper application, you need to add the `NEXT_PUBLIC_PROPOSAL_DISCUSSION_API_URL` environment variable to the .env file, with the URL of the proposal discussion backend.

0 comments on commit d37285d

Please sign in to comment.