fix: all issues

This commit is contained in:
2022-10-07 09:42:31 +02:00
parent 2cacac4412
commit e26fdbddfc
2 changed files with 20 additions and 7 deletions

View File

@@ -7,21 +7,25 @@ tags: [guides]
## Hello everyone!
I'm Sr Izan, your fellow sern-handler user and contributor.
I'm Sr Izan, your fellow user and contributor.
Today I'm going to show you how to get started with sern and all its cool features.
### Step 1: Install the CLI.
Just run:
Install the CLI:
```
npm i -g @sern/cli
```
then just use
and then run
```
sern init
```
The CLI is written in Typescript and open-sourced on [Github](https://github.com/sern-handler/cli). (thanks evo!)
:::tip
You can also run `sern init -y` if you want to use the default options.
:::
The CLI is written in Typescript and open-sourced on [Github](https://github.com/sern-handler/cli). (thanks [evo](https://github.com/EvolutionX-10)!)
### Step 2: Have some way to store secrets.
@@ -29,6 +33,10 @@ Normally you'd need a way to store secrets, and the best way to do that is by in
just `npm i dotenv` in the project folder and add `require('dotenv').config()` to your import section. Then, when you login, `process.env.TOKEN` (or however you have it named on your `.env` file) should do the trick.
:::caution
If you're using ESM, configure dotenv with `import 'dotenv/config'` instead of `require('dotenv').config()`.
:::
### And... that's it?
Yes, that's it. Here's a little FAQ to get you started. You can also join the [Discord](https://sern-handler.js.org/discord) for any problems.
@@ -48,7 +56,7 @@ Yes, that's it. Here's a little FAQ to get you started. You can also join the [D
</video>
**Q**: Any snippet VSCode extension?
**A**: Yeah, just search `sern Snippets` made by a verified publisher called Sr Izan (haha yeah me funny!1!)
**A**: Yeah, just search `sern Snippets` made by a verified publisher called Sr Izan (haha yeah me funny!)
**Q**: HEEEELLLPPPP!!!!
**Q**: HEEEELLLPPPP!!!!
**A**: Hey, don't panic! We're here to help so, join the [Discord](https://sern-handler.js.org/discord). We're trying to get to 100 members!

View File

@@ -7,4 +7,9 @@ Sr Izan:
name: Sr Izan
title: Contributor
url: https://github.com/SrIzan10
image_url: https://github.com/SrIzan10.png
image_url: https://github.com/SrIzan10.png
Murtatrxx:
name: Murtatrxx
title: Developer
url: https://github.com/Murtatrxx
image_url: https://github.com/Murtatrxx.png