HaskRead is a web-based blogging application designed to facilitate hands-on learning with the Scotty Web-Framework. This application allows users to experience the simplicity and power of Scotty alongside other technologies like Blaze-html for templating and PostgreSQL for database management.
- Scotty: A lightweight web framework for Haskell, inspired by Ruby's Sinatra.
- Blaze-html: A library for Haskell that provides an HTML templating engine.
- PostgreSQL: An open-source relational database system.
- User Authentication using JWT.
- CRUD on POST.
- Nested Comments.
To get HaskRead up and running on your local machine, follow these simple steps:
Ensure you have the following installed:
-
Clone the repository
Open your terminal and clone the Scotty-Crud repository using Git:
git clone https://github.com/yourusername/HaskRead.git
Navigate into the project directory:
cd HaskRead
-
Set up the database
Make sure PostgreSQL is running. Create a new database for the project and note down the credentials; you'll need to configure these in the code.
-
Configure your environment
Update the database configuration in the application to match your PostgreSQL settings.
-
Run the application
Use Cabal to run the application:
cabal run
The application should now be running on your local server. Open your web browser and navigate to the address provided in your terminal to start using HaskRead.