Skip to content

Commit

Permalink
additional info
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeSinLiang committed Apr 6, 2024
1 parent 7d524c6 commit afa0c2d
Show file tree
Hide file tree
Showing 29 changed files with 414 additions and 223 deletions.
5 changes: 5 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PAYLOAD_SECRET=
MONGODB_URL=
NEXT_PUBLIC_SERVER_URL=http://localhost:3000

SOLANA_WALLET_ADDRESS=
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ next-env.d.ts
/src/media

/.next
/dist
/dist
68 changes: 67 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,67 @@
# Arbour.io
# Harbour.io

## Overview

Harbour is a holistic preventive health platform that aims to change how healthcare is done. Instead of expensive hospital bills, pills after pills, and just generally feeling awful, we want to help you stop yourself from falling sick in the first place. We are looking to deliver end-to-end care, spanning telehealth consultations and diagnosis, to day-to-day monitoring of diets and exercise, to give you and your caregivers the insight you need to truly target your self-care.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

Before you begin, ensure you have the following tools installed on your machine:
- [Yarn](https://yarnpkg.com/) - Yarn is a fast, reliable, and secure dependency management tool.

You can check if you have Node and Yarn installed by running the following commands in your terminal:

```bash
yarn -v
```

### Installation

First, clone the Harbour repository to your local machine using Git:

```bash
git clone https://github.com/your-username/harbour.io.git
cd harbour.io
```

Install the project dependencies with Yarn:

```bash
yarn
```

### Running the Project

#### Development Environment

To run the project in a development environment with hot reloading:

```bash
yarn dev
```

This command will start a local development server. You can now access the Harbour platform by navigating to `http://localhost:3000` in your web browser.

#### Production Environment

To run the project in a production environment:

1. Build the project:

```bash
yarn build
```

This command prepares the project for production by optimizing and minifying the code.

2. Start the project:

```bash
yarn start
```

This command serves the production build of the app. Ensure your production environment is properly set up to serve the app to your users.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "arbour",
"name": "harbour",
"version": "0.1.0",
"private": true,
"main": "dist/server.js",
Expand Down

This file was deleted.

Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/nav/icons/bestsellers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/nav/icons/new.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file modified public/nav/icons/picks.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/nav/ui-kits/blue.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/nav/ui-kits/mixed.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/nav/ui-kits/purple.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/thumbnail.jpg
Binary file not shown.
Binary file added public/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ export default function Home() {
<span className="text-blue-600">medicine and food</span>.
</h1>
<p className="mt-6 text-lg max-w-prose text-muted-foreground">
Welcome to Arbour.io ⚓ Every medicine and food product listed on
our platform goes through a rigorous quality assurance process to
ensure that you receive only the best. We believe in providing a
seamless and secure experience for both buyers and sellers, making
it easy to find and purchase the products you need. Join our
community today and discover a world of high-quality medicine and
food options.
Welcome to Harbour.io ⚓. A holistic preventive health platform that aims to change how healthcare is done. Instead of expensive hospital bills, pills after pills, and just generally feeling awful, we want to help you stop yourself from falling sick in the first place. We are looking to deliver end-to-end care, spanning telehealth consultations and diagnosis, to day-to-day monitoring of diets and exercise, to give you and your caregivers the insight you need to truly target your self-care.
</p>
<div className="flex flex-col sm:flex-row gap-4 mt-6">
<Link href="/products" className={buttonVariants()}>
Expand Down
6 changes: 3 additions & 3 deletions src/app/thank-you/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ const ThankYouPage = async ({
value === product.category
)?.label

const downloadUrl = (
product.product_files as ProductFile
).url as string
// const downloadUrl = (
// product.product_files as ProductFile
// ).url as string

const { image } = product.images[0]

Expand Down
11 changes: 5 additions & 6 deletions src/collections/Orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Orders: CollectionConfig = {
admin: {
useAsTitle: 'Your Orders',
description:
'A summary of all your orders on Arbour.io .',
'A summary of all your orders on Harbour.io .',
},
access: {
read: yourOwn,
Expand All @@ -33,9 +33,6 @@ export const Orders: CollectionConfig = {
create: () => false,
update: () => false,
},
admin: {
hidden: true,
},
required: true,
},
{
Expand All @@ -54,8 +51,10 @@ export const Orders: CollectionConfig = {
{
name: 'user',
type: 'relationship',
admin: {
hidden: true,
access: {
read: ({ req }) => req.user.role === 'admin',
create: () => false,
update: () => false,
},
relationTo: 'users',
required: true,
Expand Down
Loading

0 comments on commit afa0c2d

Please sign in to comment.