Skip to content

Journaling app containing a simple front end and a small nodejs api to post and get data from a MongoDb database

Notifications You must be signed in to change notification settings

CTMarius/journalApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

116 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journal Application

A web-based journaling application with a Node.js backend and MongoDB database.

Features

  • Daily journal entries with date selection
  • Secure access with basic authentication
  • Persistent storage using MongoDB
  • Simple and clean user interface
  • REST API endpoints for journal operations

Prerequisites

  • Node.js (>=0.12)
  • MongoDB (running on port 27017)
  • npm

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Make sure MongoDB is running locally
  2. Start the application:
npm start

The server will start on http://localhost:3000

API Endpoints

  • GET /entry - Retrieve all journal entries
  • POST /entry - Create a new journal entry
  • GET /entry/:id - Get a specific entry by ID
  • PUT /entry/:id - Update a specific entry

Authentication

The application uses basic authentication:

  • Default credentials:
    • Username: admin
    • Password: admin

Technology Stack

  • Backend:
    • Express.js
    • Mongoose
    • MongoDB
  • Frontend:
    • HTML5
    • CSS3
    • Vanilla JavaScript

Development

To run the application in development mode with auto-reload:

npm start

Security

  • Basic authentication for web interface
  • CORS enabled
  • Protected by Snyk for vulnerability monitoring

License

ISC

Author

MariusC

About

Journaling app containing a simple front end and a small nodejs api to post and get data from a MongoDb database

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •