Skip to content

Commit 994c41b

Browse files
authored
Merge pull request #50 from DefiFundr-Labs/docs/recfor-docs
refactor: rename module and update README to reflect new project scope
2 parents 1666589 + 83349b7 commit 994c41b

File tree

4 files changed

+5
-887
lines changed

4 files changed

+5
-887
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ air:
8080
air
8181

8282
mock:
83-
mockgen -package mockdb -destination db/mock/store.go github.com/demola234/defiraise/db/sqlc Store
83+
mockgen -package mockdb -destination db/mock/store.go github.com/demola234/defifundr/db/sqlc Store
8484

8585
# Help command
8686
help:

Readme.md

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
## What is DefiFundr?
99

10-
DefiFundr is a decentralized crowdfunding platform built on the Ethereum blockchain. It allows users to create and contribute to crowdfunding campaigns, and allows campaign creators to set a funding goal and deadline. If the funding goal is met before the deadline, the campaign is successful and the funds are released to the campaign creator. If the funding goal is not met before the deadline, the campaign is unsuccessful and the funds are returned to the contributors.
10+
DefiFundr is a revolutionary decentralized payroll and invoice management system that bridges the gap between traditional financial systems and blockchain technology. The platform provides a seamless, secure, and transparent solution for businesses to manage employee payments, handle freelancer invoices, and automate salary disbursements across both fiat and cryptocurrency channels.
1111

1212
## Installation
1313

1414
```bash
1515
git clone
16-
cd deFICrowdFunding-Backend
16+
cd defifundr_backend
1717
go mod download
1818
```
1919

@@ -54,58 +54,3 @@ go test ./...
5454
```bash
5555
go test -v -cover ./...
5656
```
57-
58-
## API Documentation
59-
60-
<!-- swagger logo and link to view -->
61-
62-
![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge&logo=swagger&logoColor=white&link=https://defifundr-hyper.koyeb.app/swagger/index.html)
63-
[View API Documentation](https://defifundr-hyper.koyeb.app/swagger/index.html)
64-
65-
## Database Documentation
66-
67-
<!-- dbdiagram logo and link to view -->
68-
69-
[DB Diagram](https://dbdocs.io/kolawoleoluwasegun567/DefiFundr)
70-
71-
## Smart Contract Address
72-
73-
<!-- etherscan logo and link to view -->
74-
75-
![Ethereum](https://img.shields.io/badge/Ethereum-3C3C3D?style=for-the-badge&logo=Ethereum&logoColor=white)(https://sepolia.etherscan.io/address/0x574Bc33136180f0734fc3fa55379e9e28701395E#code)
76-
77-
## API Endpoints
78-
79-
| Endpoint | Functionality | HTTP method |
80-
| ---------------------------------- | :------------------------: | :---------: |
81-
| /api/v1/campaigns | Create a new campaign | POST |
82-
| /api/v1/campaigns | Get all campaigns | GET |
83-
| /api/v1/campaigns/:id | Get a campaign by id | GET |
84-
| /api/v1/campaigns/owner | Get a campaign by owner | GET |
85-
| /api/v1/campaigns/donation/:id | Get a campaign donors | GET |
86-
| /api/v1/campaigns/donate | Donate to a campaign | POST |
87-
| /api/v1/campaigns/withdraw | Withdraw from a campaign | POST |
88-
| /api/v1/campaigns/myDonations | Get my donations | GET |
89-
| /api/v1/campaigns/categories | Get all categories | GET |
90-
| /api/v1/campaigns/categories/:id | Get campaigns by category | GET |
91-
| /api/v1/campaigns/search | Search campaigns by name | GET |
92-
| /api/v1/campaignsTypes | Get all campaign types | GET |
93-
| /api/v1/campaigns/latestCampaigns | Get latest campaigns | GET |
94-
| /api/v1/user | Get user details | GET |
95-
| /api/v1/user | Update user details | POST |
96-
| /api/v1/userAddress | Get user by address | POST |
97-
| /api/v1/user/avatar | Set profile avatar | GET |
98-
| /api/v1/user/avatar/set | Select avatar | POST |
99-
| /api/v1/user/biometrics | Set biometrics | POST |
100-
| /api/v1/user/logout | Logout user | POST |
101-
| /api/v1/user/password/change | Change password | POST |
102-
| /api/v1/user/password | Create password | POST |
103-
| /api/v1/user/password/reset | Reset password | POST |
104-
| /api/v1/user/password/reset/verify | Verify password reset code | POST |
105-
| /api/v1/user/verify | Verify user | POST |
106-
| /api/v1/user/verify/resend | Resend verification code | POST |
107-
| /api/v1/user/checkUsername | Check if username exists | POST |
108-
| /api/v1/user/privatekey | Get user private key | POST |
109-
| /api/v1/user/login | Login user | POST |
110-
| /api/v1/user/renewAccess | Renew access token | POST |
111-
| /api/v1/currentPrice | Get current ETH price | GET |

go.mod

Lines changed: 2 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,3 @@
1-
module github.com/demola234/defiraise
1+
module github.com/demola234/defifundr
22

3-
go 1.20
4-
5-
require (
6-
github.com/aead/chacha20poly1305 v0.0.0-20170617001512-233f39982aeb
7-
github.com/cloudinary/cloudinary-go v1.7.0
8-
github.com/ethereum/go-ethereum v1.12.0
9-
github.com/gin-gonic/gin v1.10.0
10-
github.com/golang/mock v1.6.0
11-
github.com/google/uuid v1.3.0
12-
github.com/jackc/pgx/v5 v5.4.0
13-
github.com/lib/pq v1.10.9
14-
github.com/o1egl/paseto v1.0.0
15-
github.com/rs/zerolog v1.29.1
16-
github.com/spf13/viper v1.16.0
17-
github.com/stretchr/testify v1.9.0
18-
github.com/swaggo/files v1.0.1
19-
github.com/swaggo/gin-swagger v1.6.0
20-
github.com/swaggo/swag v1.16.1
21-
golang.org/x/crypto v0.23.0
22-
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
23-
)
24-
25-
require (
26-
github.com/KyleBanks/depth v1.2.1 // indirect
27-
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect
28-
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
29-
github.com/aead/poly1305 v0.0.0-20180717145839-3fee0db0b635 // indirect
30-
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
31-
github.com/bytedance/sonic v1.11.6 // indirect
32-
github.com/bytedance/sonic/loader v0.1.1 // indirect
33-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
34-
github.com/cloudwego/base64x v0.1.4 // indirect
35-
github.com/cloudwego/iasm v0.2.0 // indirect
36-
github.com/creasty/defaults v1.5.1 // indirect
37-
github.com/davecgh/go-spew v1.1.1 // indirect
38-
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
39-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
40-
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
41-
github.com/fsnotify/fsnotify v1.6.0 // indirect
42-
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
43-
github.com/gin-contrib/sse v0.1.0 // indirect
44-
github.com/go-ole/go-ole v1.2.1 // indirect
45-
github.com/go-openapi/jsonpointer v0.20.0 // indirect
46-
github.com/go-openapi/jsonreference v0.20.2 // indirect
47-
github.com/go-openapi/spec v0.20.9 // indirect
48-
github.com/go-openapi/swag v0.22.4 // indirect
49-
github.com/go-playground/locales v0.14.1 // indirect
50-
github.com/go-playground/universal-translator v0.18.1 // indirect
51-
github.com/go-playground/validator/v10 v10.20.0 // indirect
52-
github.com/go-stack/stack v1.8.1 // indirect
53-
github.com/goccy/go-json v0.10.2 // indirect
54-
github.com/gorilla/schema v1.2.0 // indirect
55-
github.com/gorilla/websocket v1.4.2 // indirect
56-
github.com/hashicorp/hcl v1.0.0 // indirect
57-
github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c // indirect
58-
github.com/jackc/pgpassfile v1.0.0 // indirect
59-
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
60-
github.com/josharian/intern v1.0.0 // indirect
61-
github.com/json-iterator/go v1.1.12 // indirect
62-
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
63-
github.com/leodido/go-urn v1.4.0 // indirect
64-
github.com/magiconair/properties v1.8.7 // indirect
65-
github.com/mailru/easyjson v0.7.7 // indirect
66-
github.com/mattn/go-colorable v0.1.13 // indirect
67-
github.com/mattn/go-isatty v0.0.20 // indirect
68-
github.com/mitchellh/mapstructure v1.5.0 // indirect
69-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
70-
github.com/modern-go/reflect2 v1.0.2 // indirect
71-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
72-
github.com/pkg/errors v0.9.1 // indirect
73-
github.com/pmezard/go-difflib v1.0.0 // indirect
74-
github.com/redis/go-redis/v9 v9.7.0 // indirect
75-
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
76-
github.com/spf13/afero v1.9.5 // indirect
77-
github.com/spf13/cast v1.5.1 // indirect
78-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
79-
github.com/spf13/pflag v1.0.5 // indirect
80-
github.com/subosito/gotenv v1.4.2 // indirect
81-
github.com/tklauser/go-sysconf v0.3.5 // indirect
82-
github.com/tklauser/numcpus v0.2.2 // indirect
83-
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
84-
github.com/ugorji/go/codec v1.2.12 // indirect
85-
golang.org/x/arch v0.8.0 // indirect
86-
golang.org/x/net v0.25.0 // indirect
87-
golang.org/x/sys v0.20.0 // indirect
88-
golang.org/x/text v0.15.0 // indirect
89-
golang.org/x/time v0.9.0 // indirect
90-
golang.org/x/tools v0.12.0 // indirect
91-
google.golang.org/protobuf v1.34.1 // indirect
92-
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
93-
gopkg.in/ini.v1 v1.67.0 // indirect
94-
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
95-
gopkg.in/yaml.v3 v3.0.1 // indirect
96-
)
3+
go 1.23

0 commit comments

Comments
 (0)