Risen.JS

Risen.JS

  • Docs
  • Tutorial
  • API
  • Help

›Tutorial

Introduction

  • Quickstart
  • Overview
  • Philosophy
  • Security
  • Terminology

Tutorial

  • Setting Up
  • Initialise Project
  • Prime Service
  • Render Service
  • Configure Framework
  • See Results

API Reference

  • Constructor
  • Instance
  • Services
  • Global Methods
  • Data Structure
  • Codes

Initialise the Project

Now, let's initialize a new NPM package to keep everything in one place. If you had installed Risen.JS globally we could have skipped this section and gone straight to creating the files.

Create Project Folder

Create a new folder and cd into the said folder:

cd ~
mkdir prime-react-app
cd prime-react-app

Initialise Repository

Initialize the directory as an NPM package. This will allow us to install NPM modules:

npm init -y

Install Dependencies

Install node dependencies (fixing the react version in case of future changes):

# Yarn
yarn add @babel/core@7.12.9 @babel/preset-env@7.12.7 @babel/preset-react@7.12.7 antd@4.8.2 body-parser@1.19.0 compression@1.7.4 prop-types@15.7.2 react@17.0.1 react-dom@17.0.1 risen-js@latest

# NPM
npm install @babel/core@7.12.9 @babel/preset-env@7.12.7 @babel/preset-react@7.12.7 antd@4.8.2 body-parser@1.19.0 compression@1.7.4 prop-types@15.7.2 react@17.0.1 react-dom@17.0.1 risen-js@latest --save
← Setting UpPrime Service →
  • Create Project Folder
  • Initialise Repository
  • Install Dependencies
Topics
QuickstartOverviewPhilosophySecurityTerminology
Community
Code RepositoryIssuesPull RequestsStack Overflow
Links
NPMBuild StatusLicence StatusDependenciesGitHub Repo stars
Facebook Open Source
Copyright © 2018 - 2021 David Makuni