Skip to content

A general-purpose anonymous Q&A platform application built with Angular, ASP.NET Core, and SQLite.

License

Notifications You must be signed in to change notification settings

cabbagecabbagecabbage/loaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loaf 🍞



loaf is a general-purpose anonymous Q&A platform built with Angular, ASP.NET Core, and SQLite.

Here is a demo of the project: https://loaf-ui.onrender.com/

Keep in mind that this demo is hosted using a free service and does not accurately reflect the expected performance. In particular, you may have to wait over 10 seconds for the server to wake up if it has been inactive for a while.

Features

  • Search - Users can search for posts and threads using keywords.
  • Post Tags - Users can tag posts with keywords to make them easier to find. You can modify the list of tags in the LOAF-UI\src\app\components\create-post\create-post.component.html file.
  • HTML Support - Users can use HTML tags to format their posts.
  • MathJax Support - Users can use LaTeX to display mathematical notation.

Getting Started

loaf has two components: LOAF-UI (frontend) and LOAF-API (backend). This means you will need to deploy both components to use loaf out of the box.

Of course, you can also use only one of them and develop your own frontend or backend.

Using Docker

You can deploy loaf using the Docker images. Make sure to configure the API URL in the frontend before deploying.

LOAF-UI: https://hub.docker.com/r/cabbagecabbagecabbage/loaf-ui

LOAF-API: https://hub.docker.com/r/cabbagecabbagecabbage/loaf-api

You can also build your own images using the Dockerfiles in the respective folders. This may be preferred if you want to modify the source code before deploying.

Using This Repository

Prerequisites

Before you begin, you will need to have the following software installed on your machine:

  • Git
  • .NET 7.0 SDK
  • Node.js
  • Angular CLI

Installation For Local Development

  1. Clone the GitHub repository:
git clone https://github.com/cabbagecabbagecabbage/LOAF.git
  1. Navigate to the LOAF-API directory:
cd LOAF/LOAF-API
  1. Run the backend API:
dotnet run
  1. Edit the LOAF-UI/src/environments/environment.ts file, and replace apiUrl with the URL where LOAF-API is listening + '/api'. For example:
apiUrl: 'http://localhost:5000/api'
  1. Navigate to the LOAF-UI directory (assuming you are still in the LOAF-API directory):
cd ../LOAF-UI
  1. Install dependencies:
npm install --force
  1. Run the frontend:
ng serve
  1. Once the frontend UI is running, open your web browser and navigate to http://localhost:4200. You should see some placeholder threads on the homepage.

Your instance of loaf is now set up and ready to use.

License

loaf is licensed under the MIT License. See the LICENSE file for more details.

About

A general-purpose anonymous Q&A platform application built with Angular, ASP.NET Core, and SQLite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published