Giter Site home page Giter Site logo

thelonedevil / core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codidact/core

0.0 1.0 0.0 1.14 MB

The core Codidact Q&A software implementation

License: GNU Affero General Public License v3.0

C# 88.17% HTML 9.43% CSS 0.01% JavaScript 2.40%

core's Introduction

Codidact Logo

Website Chat Contributing

Huh?

Codidact is community-driven Q&A software: created, maintained, used, and run by the community, for the community. There's no money-making company behind this.

We're currently in the early stages of development, but once we have a working MVP, we'll be hosting a public Codidact instance for everyone to use. The software will also be available to download and run yourself to host your instance under your own rules.

Installation

These instructions are for setting up and running a local development instance of Codidact.

Technology Stack

A list of the current tech stack is here. These items will be installed in the steps below, but if all of these are already installed on your system you can skip straight to running the project.

Windows

We'll be using Visual Studio for this setup.

  1. Download Visual Studio 2019 Community and start up the installer. If you already have VS2019 installed, run the Visual Studio Installer instead.
  2. When prompted to select workloads, select the "ASP.NET and Web Development" workload, and then install it.
  3. Once the installation is complete, clone/download this repository and extract it somewhere.
  4. In the root of the repository, open the Codidact.sln file with visual studio to get started.
  5. Visual Studio will attempt to install any missing packages. This usually requires no additional action, but if it fails to do so, perform a package restore.
  6. Once Visual Studio has finished loading, you can run Codidact by setting the WebUI project as the startup project. You'll know you're ready to run the project when a Start IIS Express button appears.
  7. See the Database Setup instructions below

Alternatively, if you don't want to run Visual Studio just to start the project, you can navigate to the src/WebUI folder (so that WebUI.csproj is in your working directory) and issue the command dotnet run.

Linux

  1. Download .NET Core SDK. Specifically, from this page, follow the sections labeled "Register Microsoft Key and feed" and "Install the .NET Core SDK"
  2. Once the installation is complete, clone/download the repository and extract it somewhere.
  3. You can run Codidact by navigating to the src/WebUI folder (so that WebUI.csproj is in your working directory) and issuing the command dotnet run.

Database Setup

These instructions assume that you don't have a PostgreSQL DB server installed at the moment and would like to run one locally. These instructions may change heavily depending on your circumstances.

  1. Install PostgreSQL:
    • Windows. This will also install pgAdmin.
    • Linux users will most likely want to use the PostgreSQL version provided by their package manager.
  2. Create a new database and name it whatever you like. Windows users can do this using pgAdmin.
  3. Open appsettings.Development.json in the WebUI project and add a new connection string for your database. It will look something like this, along with any relevant connection information:
"ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Database=YOUR_DATABASE;"
}
  1. Open a terminal at the Codidact solution folder. Run the command dotnet tool restore.
  2. Navigate to the WebUI project folder and run dotnet ef database update to apply the project migrations to the database.
  3. Verify that your database is now populated with new tables.

License

AGPL v3.0.

Contributions

Very welcome! Please read our contributing guidelines before you start writing code.

core's People

Contributors

artofcode- avatar asynts avatar benjamin-allen avatar charliebrumbaugh avatar gldraphael avatar jflopezfernandez avatar linnydude3347 avatar luap42 avatar masonwheeler avatar misha130 avatar ozewski avatar ranolfi avatar wbt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.