-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db84805
commit 9f8b1ac
Showing
3 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
node_modules | ||
|
||
#misc | ||
.DS_Store | ||
.DS_Store | ||
# Fresh build directory | ||
_fresh/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,16 @@ | |
|
||
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
|
||
My [portfolio website](https://binodnepali.me/) build using [fresh](https://fresh.deno.dev/) a full stack framework for [deno](https://deno.land/) and [Twind](https://twind.dev/) a solution for js in [tailwind](https://tailwindcss.com/). | ||
My [portfolio website](https://binodnepali.me/) build using | ||
[fresh](https://fresh.deno.dev/) a full stack framework for | ||
[deno](https://deno.land/) and [Tailwindcss](https://tailwindcss.com/). | ||
|
||
This site is deployed using [deno deploy](https://docs.deno.com/deploy/manual). | ||
|
||
## Before getting started | ||
|
||
Make sure you have installed [deno 1.32.5](https://deno.land/[email protected]/introduction) in your machine. | ||
Make sure you have installed [deno 1.39.1](https://docs.deno.com/runtime/manual) | ||
or higher in your machine. | ||
|
||
### Cloning repo | ||
|
||
|
@@ -28,14 +33,26 @@ cd portfolio | |
|
||
Start the project: | ||
|
||
``` | ||
```bash | ||
deno task start | ||
``` | ||
|
||
This will watch the project directory and restart as necessary. | ||
|
||
### Available routes | ||
Build the project | ||
|
||
```bash | ||
deno task build | ||
``` | ||
|
||
Preview the project | ||
|
||
1. http://localhost:8000/ - home page | ||
2. http://localhost:8000/YOUR-NAME - dynamic page example | ||
3. http://localhost:8000/api/intro - api route example | ||
```bash | ||
deno task preview | ||
``` | ||
|
||
Update the project | ||
|
||
```bash | ||
deno task update | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,8 @@ | |
"preview": "deno run -A main.ts", | ||
"update": "deno run -A -r https://fresh.deno.dev/update ." | ||
}, | ||
"lint": { | ||
"rules": { | ||
"tags": [ | ||
"fresh", | ||
"recommended" | ||
] | ||
} | ||
}, | ||
"exclude": [ | ||
"**/_fresh/*" | ||
], | ||
"lint": { "rules": { "tags": ["fresh", "recommended"] } }, | ||
"exclude": ["**/_fresh/*"], | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"preact": "https://esm.sh/[email protected]", | ||
|
@@ -31,9 +22,6 @@ | |
"tailwindcss/plugin": "npm:/[email protected]/plugin.js", | ||
"$std/": "https://deno.land/[email protected]/" | ||
}, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact" | ||
}, | ||
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, | ||
"nodeModulesDir": true | ||
} |