Git Product home page Git Product logo

damesek.deps-fullstack's Introduction

Full stack test skeleton



Project could be test with command (start) from user namespace.

Please don't forget to:

  • add to root data/dev folder or configure your XTDB connection
  • install npm packages, eg yarn

before open your REPL.


Services of Stack

Based on Clojure tools (deps.edn).

Application services Libraries
Database XTDB + RocksDB
State Management Mount [clj/ cljs]
Routing/ Interceptors Pedestal
Frontend Shadow-cljs + Tailwind CSS
Generate jar Uberdeps
Test runner Kaocha

What is contains:

  • simple user auth/flow
  • simple content at frontend
  • simple tests

UML extensions:
  • PlantUML, Mermaid installed for UML diags
  • Extension: [puml, plantuml, puclass format] in this folder


Installation

Rocksdb Installation on Ubuntu 18.04

sudo apt install liblz4-dev
sudo apt-get install -y libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev
git clone https://github.com/facebook/rocksdb.git
sudo apt-get install g++
sudo apt-get install build-essential
cd rocksdb/
PORTABLE=1 make all

https://docs.desmos.network/fullnode/rocksdb-installation/

  • Clone RocksDB git clone https://github.com/facebook/rocksdb.git && cd rocksdb
  • Build Rocks DBDEBUG_LEVEL=0 make shared_lib
  • Install RocksDB so that Desmos can access it sudo make install-shared
  • Make sure the newly built library is linked correctly sudo ldconfig
make install DB_BACKEND=rocksdb
sudo apt install librocksdb-dev

Add to root folder in the .env XTDB_ENABLE_BYTEUTILS_SHA1="true" OR Edit ~/.zshrc and add the line export XTDB_ENABLE_BYTEUTILS_SHA1=true. Check more info at: https://docs.xtdb.com/administration/1.22.0/configuring/ -> Environment Variables Important comment: I need to start the repl from terminal (outside of IntelliJ), because that is just a simulated terminal and will not pick up the env in correct way. I talked about with Cursive' dev. So, that is the "best practice" at XTDB.

Mac M1 issue: xtdb/xtdb#1518 {org.rocksdb/rocksdbjni {:mvn/version "6.29.4.1"}}

Test diagram setup

Mermaid diagram

graph LR
    A[write code] --> B{Does it work?}
    B -- Yes --> C[Great!]
    B -- No --> D[Google]
    D --> A
Loading

damesek.deps-fullstack's People

Contributors

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