This is a React application for the administration of a Cenit Platform istance. The current state is developing. Fallow these instructions to configure a local instance of Cenit and connect it as a backend for the app.
-
Make sure the Cenit local repository is upto date with the remote. The develop branch of Cenit to support the Admin Backed is
admin_backend
. -
The
admin_backend
development branch includes features which are not yet sync with thedevelop
andmaster
branches (for example the support of buil-in apps). For this reason is strongly recommended to use a dedicated data base. To define a custom data base just include in theconfig/application.yml
file an entryDB_DEV: custom_db_name
. -
Configure the Cenit listening port. By default the Admin App runs listening to the port
3000
therefore the local instance of Cenit should runs listening to a different one. By default the App expect Cenit being listening to the port3001
, so launch Cenit listening the port3001
. -
Configure the Cenit HOMEPAGE URL. Make sure that Cenit HOMEPAGE URL is sync with the listening port by including in the
config/application.yml
file the entryHOMEPAGE: http://127.0.0.1:3001
. -
Configure the default URI for the admin app. By default the Admin App runs listening to the port
3000
. Include in theconfig/application.yml
file the entry'Cenit::Admin:default_uri': http://localhost:3000
.
And that's all!
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
DO NOT DO THAT