Skip to content
Image sharing platform server in NodeJS
JavaScript HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
certificate
model
public
routes
test
views
.dockerignore
.gitignore
.travis.yml
Dockerfile
LICENSE.md
README.md
app.js
onegram.png
package-lock.json
package.json

README.md

Onegram NodeJS Server

NodeJS / Express Server for the Onegram image sharing application. YouTube demo

Features

  • authentication
  • image repository
  • persistent storage with MongoDB

Running the server

Make sure to install NodeJS and MongoDB.

# 1. start mongodb with
mongod --dbpath "/path/to/db"

# 2. add keypair to certificate/
openssl req -newkey rsa:2048 -nodes -keyout certificates/server.key -x509 -days 365 -out certificates/server.crt

# 3. configure smtp service in bin/mail.js
# 4. start the server

node ./bin/www

Configuration

  • registation email in bin/mail.js
  • website in /views and /public

Running tests

Requires a running server and configured SMTP.

mocha test --exit

If tests fails due to gmail authentication please check the following

  1. login to the mailer account
  2. open this link and click the button https://accounts.google.com/DisplayUnlockCaptcha
  3. make sure to enable access for "less secure applications" on the google account under security.

Available clients

You can’t perform that action at this time.