Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.38 KB

README.md

File metadata and controls

50 lines (36 loc) · 1.38 KB

Welcome to the PictureStore

A project to demonstrate Cloudinary API + a simplified accounts system.

This is an Express.js project, designed to work well with the Glitch development environment. It includes basic express setup, templating, routing and session support + rudimentary user accounts. It is backed by a simple lowdb json database.

The app is part of the course material for an introductory web development course running in WIT:

This topic here reviews the Cloudinary service + this app in more detail:

In order to run, you will need to place a Cloudinary credentials file in the .data folder called .env.json:

.data/.env.json

{
  "cloudinary": {
    "cloud_name": "YOURID",
    "api_key": "YOURKEY",
    "api_secret": "YOURSECRET"
  }
}

The following user accouts (on the local app only) have been pre-loaded, so you can log in with either:

    {
      "firstName": "homer",
      "lastName": "simpson",
      "email": "[email protected]",
      "password": "secret",
    },
    {
      "firstName": "marge",
      "lastName": "simpson",
      "email": "[email protected]",
      "password": "secret",
    }

The Lowdb database is used to provide a local datastore: