Skip to content

Reddit Clone written in Haskell's Scotty framework, Blaze-HTML and PostgreSQL.

License

Notifications You must be signed in to change notification settings

tusharad/Reddit-Clone-Haskell

Repository files navigation

Reddit clone in haskell.

It 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.

Technologies Used

  • 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.

Features

  1. User Authentication using JWT.
  2. CRUD on POST.
  3. Nested Comments.

Getting Started

To get application up and running on your local machine, follow these simple steps:

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository

    Open your terminal and clone the Scotty-Crud repository using Git:

    git clone https://github.com/tusharad/Reddit-Clone-Haskell
    

    Navigate into the project directory:

    cd Reddit-Clone-Haskell
    
  2. 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.

  3. Configure your environment

    Update the database configuration in the application to match your PostgreSQL settings.

  4. Run the application

    Use Cabal to run the application:

    cabal build
    cabal run Scotty-Crud -- appsetting.json
    

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.

Upcoming Features:

  • View my profile
  • Change password
  • View other people profile
  • edit comment

Releases

No releases published

Packages

No packages published