MyDiary is an online journal where users can pen down their thoughts and feelings.
- Clone repo to your local machine git clone https://github.com/idmega2000/MyDiary.git
- install dependencies npm install
- Create .env like the .env.sample file, just replace with your own environment variables
- Setup a Postgres database for development and for testing
- Finally start server npm run start:dev
- visit
http://localhost:5000
- To view the User interface, login with email: [email protected] and password: andela
- npm run test
View UI template here and access Api endpoint here
Swagger Api documentation here
Functionality | Http Request | Api endpoints |
---|---|---|
Registration | POST | /api/v1/auth/signup |
Login | POST | /api/v1/auth/login |
Add entry | POST | /api/v1/entries |
All Entry List | GET | /api/v1/entries |
An entry Detail | GET | /api/v1/entries/:id |
Update an entry | PUT | /api/v1/entries/:id |
Delete an entry | DELETE | /api/v1/entries/:id |
Idris Wale Kelani(@idmega2000)