Skip to content

Commit

Permalink
v5.0.0 (#5)
Browse files Browse the repository at this point in the history
* Add basic configuration

* Add navbar,search

* Add footer, navbar, chord, sidebar

* Add hotkeys, url-shortener, geodata

* Add random number & parse html

* Add images checker

* Add qr code generator

* Add downloader

* Add twibbon & search

* Add link

* Add contact

* Add contact

* Fixed hotkeys, contact

* Changed navigation mobile

* Fixed seo & add email preferences pages

* Add notification events page

* Add user, fixed navbar

* Add chord dashboard, fixed pagination

* Add twibbon dashboard

* Add quiz and blog dashboard

* Add comments

* Add dashboard, add notification

* Add likes, notification, support, update view, report

* Beta release
  • Loading branch information
putuadityabayu committed Dec 19, 2022
1 parent bbd158e commit 6c0b315
Show file tree
Hide file tree
Showing 426 changed files with 35,964 additions and 61,488 deletions.
20 changes: 0 additions & 20 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
26 changes: 12 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# next.js
/.next/
/out/
/tmp/

# production
/build
Expand All @@ -23,22 +24,19 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local

# vercel
.vercel
.vscode
.tmp.drivedownload

*-backup
*.backup
*/version.ts
*.crt
/public/*.js
#crypto.js
#next.config.js

# typescript
*.tsbuildinfo
next-env.d.ts
server.js

public/sw.js
public/workbox*.js
public/worker-*.js
58 changes: 58 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,60 @@
# Portalnesia Website

![Portalnesia](/public/image/screenshot.png)

New design of Portalnesia. Clean. Simple

## Deploy

### First Steps

**If not change dependencies, skip this steps**

- Copy files to server

- package.json
- package-lock.json
- pm2.config.json
- env files (.env.local, .env.development, .env.production)


- Install production depedencies

RUN

```bash
RUN NODE_ENV=production npm ci
#or
npm ci --omit=dev
```


### Continuous Development

- Build from local computer

In local computer, RUN:

```bash
npm run build && npm run pack
```

- Copy build files to server

Copy `/tmp/portalnesia.zip` to server

- Unzip the build files that have been sent to the server

RUN

```bash
unzip portalnesia.zip
```

- Running server

RUN

```bash
pm2 start pm2.config.json
```
23 changes: 23 additions & 0 deletions bin/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const path = require('path');
const fs = require('fs-extra');
const zl = require("zip-lib");

async function postbuild() {
const zip = new zl.Zip();
const standalone_path = path.resolve("./.next/standalone");

// copy static to standalone
await fs.copy(path.resolve('./.next/static'),standalone_path+'/.next/static');

// copy public to standalone
await fs.copy(path.resolve('./public'),standalone_path+'/public');

// copy server_standalone.js
await fs.copy(path.resolve('./server_standalone.js'),standalone_path+'/server_standalone.js');

// Add all standalone folder to zip
await zl.archiveFolder(standalone_path,path.resolve('./tmp/portalnesia.zip'));

console.log("DONE");
}
postbuild();
Loading

0 comments on commit 6c0b315

Please sign in to comment.