Giter Site home page Giter Site logo

charry1729 / shatter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from garyb9/shatter

1.0 1.0 0.0 11.75 MB

Crypto wallet and NFT based Imageboard, built on Django REST API using React, Web3, Docker, Nginx and PostgreSQL.

License: GNU General Public License v3.0

Python 53.99% HTML 0.50% Dockerfile 1.02% JavaScript 43.77% Shell 0.27% CSS 0.44%

shatter's Introduction

Shatter

Crypto wallet and NFT based Imageboard, built on Django REST API using React, Web3, Docker, Nginx and PostgreSQL.

Development instructions (Docker)

Required - Docker 20.10.2

Run Docker, then:

git clone https://github.com/garyb9/Shatter.git
cd Shatter/
docker-compose up

Development instructions (No-Docker)

Required - Python 3.7.9, conda 4.8.4, Node.js 15.5.1

  1. First time:
  • Use this env for all terminals/workdirs
git clone https://github.com/garyb9/Shatter.git
cd Shatter
conda create -n shatter
conda activate shatter
pip install -r backend/requirements.txt
  1. Configuring PostgreSQL + CORS:
  • Run pgAdmin4, make sure to add .env file
  • Add a file called 'local_settings.py' inside backend/django_app/mainapp/:
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# PostgreSQL
DATABASES = {
    "default": {
        "ENGINE": os.environ.get("DB_ENGINE", "django.db.backends.sqlite3"),
        "NAME": os.environ.get("DB_DATABASE", os.path.join(BASE_DIR, "db.sqlite3")),
        "USER": os.environ.get("DB_USER", "user"),
        "PASSWORD": os.environ.get("DB_PASSWORD", "password"),
        "HOST": os.environ.get("DB_HOST", "localhost"),
        "PORT": os.environ.get("DB_PORT", "5432"),
    }
}

# (CORS) Cross-Origin Resource Sharing Settings
CORS_ORIGIN_ALLOW_ALL = True
  1. Start development backend server:
cd backend/django_app/
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
  1. Start development frontend server:
cd frontend/react_app/
npm install
npm start

shatter's People

Contributors

garyb9 avatar oriturh avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.