jsfun.ir
v1.0.8
Published
JavaScript the Fun Part
Downloads
127
Maintainers
Readme
git clone http://github.com/k-five/nodepost
cd nodepost
- again:
git clone https://github.com/k-five/jsfun.ir home
rm -f database
mv home/database .
npm install
./node-dev nodepost
- open
localhost:1400
This is what we did:
- we cloned the application (= nodepost) for managing our blog.
- then
cd
to nodepost. - then cloning the blog we want which here is jsfun.ir.
- removing the default database we no longer need it.
- Then adding jsfun.ir's database to the application.
- Then install applicatoin dependencies using
npm
. - Then running the nodepost application
- Finally see it live.
Or using npm
git clone https://github.com/k-five/nodepost
| clone the applicationcd nodepost
| changing Working Directorynpm install jsfun.ir
| installing jsfun.ir blogmv node_modules/jsfun.ir home
| moving+renaming it to Current Working Directoryrm -fr database
| deleting the default databasemv home/database .
| moving jsfun.ir's database to CWDnpm install
| installing dependencies./node-dev nodepost.js
| run the application
The directory structure will be like this:
nodepost # nodepost application
├── build
├── database # database we pulled out of jsfun.ir
├── database-manager
├── error-page
├── home # jsfun.ir, which we renamed it to home
├── main-html
├── node_modules
├── path-manager
├── public
├── route-manager
├── script
├── src
├── test
└── vendor
14 directories
If everything goes well, we will get:
$ ./node-dev nodepost.js
ENOENT: no such file or directory, open '/var/www/html/ir/nodepost/database/stat.json'
Create: stat.json
ENOENT: no such file or directory, open '/var/www/html/ir/nodepost/database/route.dirs'
Create: route.dirs
Create: main-html/
posts.json md5: 21646e71bd20486f9e593a7bea55997c
route.dirs md5: 74e6f7298a9c2d168935f58c001bad88
Server is running at http://localhost:1400/
H-Link: ./home/database/posts.json
H-Link: ./home/database/user.json
Update: route.dirs ...
Update: route.link ...
Update: route.path ...