MyDiary is an online journal where users can pen down their thoughts and feelings.
Check Here
Template is hosted Here
API Endpoint is hosted Here
- NodeJS - JavaScript Runtime Environment
- ExpressJs - A Minimal Web Application Framework
- Mocha - JavaScript test framework
- Chai - A BDD / TDD assertion library
- Yarn - Dependency Manager
- Users can create an account and log in
- Users 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 set and get daily notifications that prompt them to add an entry to their diary
Ensure you have NodeJS installed on your computer by entering node -v
on your terminal. If you don't have NodeJS installed go to the NodeJS Website, and follow the download instructions
Clone the app
git clone https://github.com/blackshady/MyDiary.git
Install all the packages
yarn install
Run the server
yarn start
Server listens on port 9000
- Navigate to your browser and input the url localhost:9000
Run Test case
yarn test
Test Api
Endpoint | Functionality |
---|---|
GET /entries | Fetch all entries |
GET /entries/:entryId | Fetch a single entry |
POST /entries | Create an entry |
PUT /entries/:entryId | Modify an entry |
POST /auth/signup | Regetser a user |
POST /auth/login | Login a user |
DELETE /entries/:entryId | Delete a user Entry |