Skip to content

dxps/akasha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akasha

A universal library.


Architecture

This is a serverpod based solution. The following containers / services and ports are included:

service port description
api server 9090 This is the API server.
insights server 9091 This is the Insights server.
web server 9092 This is the web server.
akasha_postgres 9093 Used during development.
akasha_redis 9094 Used during development.
akasha_postgres_test 9095 Used during testing.
akasha_redis_test 9096 Used during testing.
  • The api, insights, and web servers are defined the stages related files (found in config directory).
  • PostgreSQL and Redis related containers are defined in docker-compose.yaml file.

Start

Prerequisites

First of all, in the root directory, run dart pub get to get (download) the dependencies.

Make sure you have akasha_server/config/passwords.yaml file with such content (minimal example):

# Save passwords used across all configurations here.
shared:
    mySharedPassword: 'my password'

# These are passwords used when running the server locally in development mode
development:
    database: 'ndy0IdJXkIkfVkiFiTkBY1sFHgCTtUTe'
    redis: 'MC8nBpT-wAhlFdiEZGMzmwaTnI9zFuJk'

    # The service secret is used to communicate between servers and to access the
    # service protocol.
    serviceSecret: 'GBWY47kjcARweSsrxU-FQFBA5HSJOG1k'

    emailSecretHashPepper: 'm5cPG9hCdc_KrCUxxucbSMCXlyirWmsh'
    jwtHmacSha512PrivateKey: 'QptFy_ooWSKV22TfDb64PRlXCRzgpNIq'
    jwtRefreshTokenHashPepper: 'EAyRjbGq453vdKnjeiqFAXh056Mpm4qW'
    # serverSideSessionKeyHashPepper: 'XMKvXKUFZxboXS5rzw_pDAQqQXzHvG2W'

Run

All the components can easily be started in VSCode using Run (Ctrl/Cmd + F5 shortcut).

Below is described the manual process of starting all of them.

API Server

In the akasha_server directory, run:

  1. docker compose up -d to start the PostgreSQL and Redis containers in the background.
  2. dart run bin/main.dart --apply-migrations or use ./dev.sh provided script to start:
    1. API Server and apply the database migrations.
    2. Web Server.

Go to http://localhost:9092 to see the homepage of the Web server, and where you can open the main UI.

Web App

To start the Web app in the browser with hot reload enabled, go to akasha_ui directory and run flutter run -d chrome or use ./dev_web.sh provided script.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors