Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/irsol/realm-blog
realm-blog
https://github.com/irsol/realm-blog
body-parser express express-js html javascript json nodejs realm realm-blog realm-database realm-js realm-mobile-database
Last synced: about 1 month ago
JSON representation
realm-blog
- Host: GitHub
- URL: https://github.com/irsol/realm-blog
- Owner: irsol
- Created: 2019-06-13T07:54:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T08:24:16.000Z (over 5 years ago)
- Last Synced: 2023-09-24T08:44:52.819Z (over 1 year ago)
- Topics: body-parser, express, express-js, html, javascript, json, nodejs, realm, realm-blog, realm-database, realm-js, realm-mobile-database
- Language: JavaScript
- Homepage: https://realm.io/
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Building a blog with Realm Node.js and Express
## Create a directory named realm-blog:
`mkdir realm-blog`## Go to the project folder:
`cd realm-blog`## Initialize the Node.js project:
`npm init`Example of init:
```
name: (realm-blog)
version: 1.0.0
description: Realm Blog
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
```### Use Express to handle web requests, Realm or the database, Embeded JavaSxript(EJS) to process its templates, body-parser o parse the queries which are passed from the form.
```
npm install --save express
npm install --save realm
npm install --save ejs
npm install --save body-parser
```## Install nodemon
The server will restart whenever you modify the code.
`npm install -g nodemon`##### Make changes in package.json folder:
```
{
"main": "index.js",
"scripts": {
"serve": "nodemon index.js"
},
...
}
```## Run the test server:
`npm run serve`### Source
[Tutorial](https://academy.realm.io/posts/realm-node-js-express-blog-tutorial/)[Github](https://github.com/dalinaum/realm-blog/blob/a2b86d07c3075f10607fc5c6a80e855391ed3bed/tutorial/blog-en.md)