Skip to content

Commit 353bfd0

Browse files
committed
feat(everything): upgrade node to 16 and upgrade packages
also add loglevel for server side logger add semantic release and gha
1 parent b031a6f commit 353bfd0

19 files changed

+12191
-18924
lines changed

.github/workflows/release.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: codfish/semantic-release-action@v1
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"branches": [
3+
"main",
4+
{
5+
"channel": "next",
6+
"name": "(f|b|c)/*",
7+
"prerelease": "beta-<%= (/^\\w+-\\d+/.exec(name.substr(2)) || [])[0] %>"
8+
}
9+
],
10+
"plugins": [
11+
"@semantic-release/commit-analyzer",
12+
"@semantic-release/release-notes-generator",
13+
"@semantic-release/github"
14+
]
15+
}

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MERN stack is the idea of using Javascript/Node for fullstack web development.
2424
## clone or download
2525
```terminal
2626
$ git clone https://github.com/amazingandyyy/mern.git
27-
$ npm i
27+
$ yarn # or npm i
2828
```
2929

3030
## project structure
@@ -50,9 +50,9 @@ notice, you need client and server runs concurrently in different terminal sessi
5050

5151
## Client-side usage(PORT: 3000)
5252
```terminal
53-
$ cd client // go to client folder
54-
$ npm i // npm install packages
55-
$ npm run dev // run it locally
53+
$ cd client // go to client folder
54+
$ yarn # or npm i // npm install packages
55+
$ npm run dev // run it locally
5656
5757
// deployment for client app
5858
$ npm run build // this will compile the react code using webpack and generate a folder called docs in the root level
@@ -69,7 +69,8 @@ run the script at the first level:
6969

7070
```terminal
7171
// in the root level
72-
$ echo "JWT_SECRET=YOUR_JWT_SECRET" >> ./server/src/.env
72+
$ cd server
73+
$ echo "JWT_SECRET=YOUR_JWT_SECRET" >> src/.env
7374
```
7475

7576
### Start

0 commit comments

Comments
 (0)