Skip to content

Our website intends to address and help or put forward the issue of 🧠 mental health. We are providing a safe space for people to share their stories, experiences and issue to other people. Being anonymous helps them hide their identity, so they don’t have to feel insecure about their presence.

License

Notifications You must be signed in to change notification settings

mrpkdeveloper/BrainHealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project-hackjaipur-

Database setup

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;

Project structure

Backend

SRC
├───controllers
├───db
├───public
└───routes

Frontend

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

  1. create user

articles

  1. create article
  2. show all articles

comments

  1. show all comments(user)
  2. show all comments(article)
  3. add a comment

Api documentation

Users

  1. post /users
    creates a new user with random username and an user id
  2. get /users/{userid}
    get user with with given id
  3. get /users/{username}
    get user with with given username

Post

  1. get /articles
    get all posts by everyone
  2. post /articles
    create a new post with fields
userId=  
title=  
body=  

About

Our website intends to address and help or put forward the issue of 🧠 mental health. We are providing a safe space for people to share their stories, experiences and issue to other people. Being anonymous helps them hide their identity, so they don’t have to feel insecure about their presence.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published