mysql -u root
create database healthdb;
create user healthuser identified with mysql_native_password by 'healthpass';
grant all privileges on healthdb.* to healthuser;
flush privileges;
SRC
├───controllers
├───db
├───public
└───routes
src/public
├───app # our own frontendcode
├───components # html components parts used
├───css # css libraries that we are using
├───fonts # fonts that we are using
└───js # js libraries that we are using
users
- create user
articles
- create article
- show all articles
comments
- show all comments(user)
- show all comments(article)
- add a comment
post /users
creates a new user with random username and an user idget /users/{userid}
get user with with given idget /users/{username}
get user with with given username
get /articles
get all posts by everyonepost /articles
create a new post with fields
userId=
title=
body=