A blog where I can write about the books I'm reading.
- Clone this repo.
cd book-blog
yarn install
npm start
- The app will now be running on localhost:3000
- Yarn (package management)
- NodeJs
- Express
- Cors
- Nodemon
- Bcrypt
- Dotenv
- pg-promise
As a user I can create an account with admin privileges.
POST /users/register
// Adds a new user to the database.
// Body
{
"username": "string",
"password": "string",
"email": "string",
"isAdmin": boolean
}
POST /database/init
// Tears down and re-inits the database.