Git Product home page Git Product logo

threadback's Introduction

ThreadBack

The threadback backend is a graphql api.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Cloning the Repository

If you haven't already, you will need to clone the kwilson21/threadback GitHub repository to your local machine. This can be accomplished by running the following:

$ git clone [email protected]:kwilson21/threadback.git

If you encounter an error at this point, it is likely you have not configured an SSH key with GitHub, to resolve this issue, see Generating a new SSH key and adding it to the ssh-agent for more details

Setting Up Your Environment

Getting started with threadback, you will need to install Python version 3.8 or above.

You can get the latest version of Python for Windows/Mac here: https://www.python.org/downloads/

Then install poetry

Mac OS X/Linux

$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python

Windows (Using Powershell)

$ (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python

Configuring Environment Variables

To configure your environment variables for this app, create a file called .env in the project root directory and set the following variables accordingly

DEBUG=true
HOST=localhost
PORT=8000
DB_NAME=threadback
MONGODB_URI=
REDIS_URL=
SITE_URL=

Install Required Packages

If you are using pipenv and are on a dev environment

$ cd ~/threadback
$ poetry install --dev

On a production environment

$ cd ~/QFEFE-Backend
$ poetry install

Pre commit

We have a configuration for pre-commit, to add the hook run the following command:

pre-commit install

Installing MySQL

To install MongoDB on Windows, simply follow this links: MongoDB Community Server Installation

Then install Robo3T

Then click File -> Connect

In the MongoDB Connections window, click Create. Give the connection a Name and click Save.

Installing Redis

If you are on Windows, follow these instructions to get WSL set up on your Windows machine: Windows Subsystem for Linux Installation Guide for Windows 10

Once you have Ubuntu installed on your Windows machine, open a bash terminal

$ sudo apt install redis-server

Then start the redis-server

$ sudo service redis-server start

Running the App

Once your environment is set up, you are now ready to run the app and start developing.

To run the app

$ poetry run app

threadback's People

Contributors

kwilson21 avatar

Stargazers

 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.