git clone https://github.com/yusufmsabeh/hacker-news-clone.git
cd shop-expressjs
npm i
npm start
To configure the application, you must create a .env file in the root directory of the project. The following variables must be defined in the .env file:
# random value to use as a access token secret
ACCESS_TOKEN_SECRET=
# The port which the application will run on
PORT=
This API provides the following endpoints:
Login and get access token
Creates new user account
updates public user data
Updates username
Updates a user password
Deletes a user account from database
Creates a new posts in the database
Retrieves a list of posts from the database
Retrieves a list of posts for a specific user from the database