Reactium
  • Quick Start
  • Discuss
  • Approach
    • Architecture
    • DDD Introduction
    • Domain Model
  • Reactium App Foundation
    • Reactium Guides
      • Creating a Simple Single Page Web App (SPA)
      • Creating a Sassy Style Sheet
      • Reactium Core
      • Reactium + Actinium (APIs)
      • Reactium + REST
      • Plugin Module Guide
      • Animating React Routes
      • Reactium in Production
    • Reactium Domain Model
      • Basic Domain Model
      • Runtime Domain Model
      • Buildtime Domain Model
    • Reactium SDK
      • Reactium SDK Reference
    • Updating Reactium
  • Installing Foundations
    • Before You Install
    • Install Reactium
    • Install Actinium
  • Reactium API Foundation (Actinium)
    • Actinium Core
    • Setting up your User
    • Actinium SDK
      • Actinium SDK Reference
    • Actinium Domain Model
    • Extending
    • Updating
    • Live Query
  • Reactium Toolkit
    • Overview
    • Installation
    • Configuration
    • Customization
    • Creating Elements
      • Sidebar Elements
      • Toolbar Elements
      • Documentation Elements
    • Components
      • Sidebar
      • MenuLink
      • Element
      • Code
      • Markdown
      • Icon
    • Toolkit SDK
Powered by GitBook
On this page
  • Step 1: Reactium CLI
  • Step 2: Install Database
  • Step 3: Create DB Users
  • Step 4: Install Actinium
  • Step 5: Configure Actinium
  • Step 6: Run Locally
  1. Installing Foundations

Install Actinium

PreviousInstall ReactiumNextActinium Core

Last updated 2 years ago

Step 1: Reactium CLI

If you don't have it already, globally install the

npm install -g reactium

Step 2: Install Database

Actinium relies on MongoDB as its database service. You will need to set up a local instance for development purposes.

You can install MongoDB however you wish, but is an easy way.

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install MongoDB

If you're not sure if you have MongoDB installed already or are running an older version that may not be supported, you can run:

brew services stop mongodb
brew uninstall mongodb
brew tap mongodb/brew
brew install mongodb-community

Run MongoDB Service

brew services start mongodb-community

Step 3: Create DB Users

If this is your first time running MongoDB locally, you'll need to create the root admin user account.

Create DB Admin User

mongo
use admin
db.createUser({user:"dbadmin", pwd:"PASSWORD", roles:[{role:"root", db:"admin"}]})

Note: be sure to replace PASSWORD with the actual password you wish to use

Create DB Actinium User

use actinium
db.createUser({user:"actinium", pwd:"PASSWORD", roles:["readWrite"]})
exit

Note: be sure to replace PASSWORD with the actual password you wish to use

Step 4: Install Actinium

cd /YOUR/PROJECT
reactium init
[ARCLI] > Initialize what type of project?:  
  Reactium (Web Application) 
❯ Actinium (Web API) 
[ARCLI] > Initialize Actinium here?:  (y/N) y

Step 5: Configure Actinium

Configure Actinium to run using the default db and user:

cd /WHERE/YOU/SAVED/ACTINIUM
reactium db -u "mongodb://actinium:PASSWORD@localhost:27017/actinium"

Step 6: Run Locally

npm run local

Done!

To view the Database Dashboard provided by Parse Server:

  • Username: admin

  • Password: admin

Navigate to:

Reactium CLI
Homebrew
localhost:9000/parse