Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-koshchei committed Aug 16, 2023
1 parent ce1bc8c commit ff5e561
Show file tree
Hide file tree
Showing 74 changed files with 9,659 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"prettier"
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
extraFileExtensions: [".svelte"]
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser"
}
}
]
}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"useTabs": false,
"singleQuote": false,
"trailingComma": "none",
"semi": false,
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
73 changes: 71 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,71 @@
# spentoday-site
Separated spentoday site frontend. Will be ranamed to spentoday
![Spentoday banner](./assets/banner.svg)

---

If you are afraid of losing money, spend it today. Live without fear.
Selling platform of future for customers and business owners.

Website: [spentoday.com](https://www.spentoday.com)

Shop GitHub repo: [flurium/spentoday-shop](https://github.com/flurium/spentoday-shop)
Api GitHub repo: [flurium/spentoday-api](https://github.com/flurium/spentoday-api)

Spelling: spen + to + day (do it as italian)

Technical requirements!: [docs/tech-requirements](./docs/tech-requirements.md)

## Developing

Clone the repository:

```bash
git clone https://github.com/flurium/spentoday.git
```

Get inside of folder:

```bash
cd spentoday
```

Use dev branch:

```bash
git checkout dev
```

From install dependencies:

```bash
npm install
```

Set environment variable on your machine, so it works with local backend.
Not in .env file, but in machine settings.

```bash
NODE_TLS_REJECT_UNAUTHORIZED=0
```

Setup .env file for:

```bash
PUBLIC_API_URL=https://localhost:44303
```

Start development server:

```bash
npm run dev
```

Run next command to watch for code changes and generate types when changes appear:

```bash
npm run check:watch
```

### Resources to learn Svelte

- [Svelte Docs](https://svelte.dev/docs/) for ui.
- [SvelteKit Docs](https://kit.svelte.dev/docs/) for loading data, server-side renderin, routing.
4 changes: 4 additions & 0 deletions assets/banner.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 added assets/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions docs/business.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Business

There we describe how to get money from Spentoday.

## Plans

Pro:

- email notifications about orders

## Clients

Potential clients and prospects:

- small and medium local shops (because big shops are already online)
- young people, like students, who want to do e-commerce

Reaching clients:

**Emails and DMs** should be short, because noone will read 5 paragraphs of text.
It's harder to find emails of shops, so mostly it's reaching young people.
Mostly it will be connecting with people not selling straight.

```
Hi! I saw your shop in ... area. I help shops go online.
I was wondering if we can have a phone call or meeting in few days.
My phone: +380..........
```

**Phone calls** is oriented on shops. It's powerful, because: not all people are doing it,
person to person. We can find shop phones on google maps, or directly attending it. It's
good if you firstly write email or dm, so you have actual reason to call. With something
like: "I wrote you a letter few days ago. Did you have time to check it? It was about ..."

**Paper Letter** is super, noone send real letters nowadays. To surely grab the attention
we can attach money to a letter (maybe not working money like zimbabwe dollar) and mention
it in text of the letter.

**Personal visits** are good. Reaching small and medium shops can be easier task,
because they are everywhere. Possibly we can go to a big mall and find here medium
shops as well.

Young guys are mostly watch social media, youtube, so we can put advertising here.
As well we can create own content how to make prifitable online shop, but then we
should open such one.

Things we should know about prospect to continue working with:

1. They can ship their products
2. They understand that people want to buy online
3. They are not scammers (we don't want such people on our platform)
4.
5.

## Proof of competence

We need to open an online shop as fast as we relese v1. And we should make tutorials,
so we can showcase it to any prospect client.

Send them example of shop, that we built and they believe much more.

## Message

Opening online shop is easy and quick now.
Not connected to a platform rules.
Built in beautiful design.
32 changes: 32 additions & 0 deletions docs/design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# All about design

Pages, UX, ...

## Shop management

Pages:

- Product management
- Product creation/editing
- List of products to manage
- Delete confirmation
- Draft and published products
- Categories management (top categories I suppose)
- Contact form
- Informational pages like blog
- Orders history
- Reviews (shop, products)
- Subscribers
- Settings

## Functional part

Here is the list of websites, that small shops/businesses have.
They are quite awful, but they have basic functionality that shops probably want.
So if we provide much better experience and design by default, a lot of businesses
will switch to us:

- [makeup.com.ua](https://makeup.com.ua/) - actually not bad
- [helgamade.com.ua](https://helgamade.com.ua/ua/)
- [haliabaluvana.com](https://haliabaluvana.com/)
- [svit-chaju.ua](https://svit-chaju.ua/ru/)
18 changes: 18 additions & 0 deletions docs/payments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Accept Payments at shop

We will connect payments as integrations to not deal with others money.

## Monobank

Link: [monobank.ua/e-comm](https://www.monobank.ua/e-comm)

User register as merchant at Monobank, get approved by it and give us `token`.
We use token to make payments or link to payments.

## Fondy

Link: [fondy.ua](https://fondy.ua)

User register as merchant at Fondy, provide us `id`. We send this id to Fondy to specify,
that user is going to use it with Spentoday. User get approved by Fondy and gives us `token`.
We use token to make payments or link to pay.
Loading

0 comments on commit ff5e561

Please sign in to comment.