MyDiary is an online journal where users can pen down their thoughts and feelings
- Users can create an account and log in.
- User can view all entries to their diary.
- Users can view the contents of a diary entry.
- Users can add or modify an entry.
- Users can delete an entry
- Users can set and get daily notifications that prompt them to add an entry to their diary
- Node.js
- Express.js
- PostgreSQL
- Javascript (ES6+)
- CSS3
- HTML5
Endpoint | Functionality |
---|---|
POST /auth/signup |
Register a user |
POST /auth/login |
Login a user |
GET /profile |
Fetch user profile |
PUT /profile |
Update user profile |
GET /entries |
Fetch all entries |
GET /entries/<entryId> |
Fetch a single entry |
POST /entries |
Create an entry |
PUT /entries/<entryId> |
Modify an entry |
DELETE /entries/<entryId> |
Delete an entry |
# Clone repo and cd into directory
git clone https://github.com/olusoladavid/my-diary.git
# Install dependencies
npm install
# Serve in development environment
npm run dev
# Build for production
npm run build
# Run test cases
npm test
Documentation: https://my-diary-api.herokuapp.com/api/docs
API Endpoint: https://my-diary-api.herokuapp.com/api/v1
Live Client: https://olusoladavid.github.io/my-diary-client
- MIT