Skip to content

Latest commit

 

History

History

publisherjs

moncon-publisherjs

Table of Contents

About

This is the javascript code to add moncon functionality to publisher's webs.

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You need NodeJS installed, at least version 14.

  • git v2.13 or greater
  • NodeJS 14 || 15 || 16
  • npm v6 or greater

All of these must be available in your PATH. To verify things are set up properly, you can run this:

git --version
node --version
npm --version

If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.

Installing

If you want to commit and push your work as you go, you'll want to fork first and then clone your fork rather than this repo directly.

After you've made sure to have the correct things (and versions) installed, you should be able to just run a few commands to get set up:

git clone https://gitlab.com/infinite-labs/moncon-framework.git
cd moncon-framework
cd packages
cd publisherjs
npm install

If you get any errors, please read through them and see if you can find out what the problem is. If you can't work it out on your own then please file an issue and provide all the output from the commands you ran (even if it's a lot).


### Configuration

- You need to have an instance of the moncon API
- Make a copy of the .env.example file with the name .env, and update it with your config

### Development

To start the local development server execute the following command.

npm start


### Build

Builds the app for production to the build folder.

- Create a file name .env.staging
The build is minified.
Your app is ready to be deployed!

npm run build:staging


## ⛏️ Built Using <a name = "built_using"></a>

- [Javascript](https://developer.mozilla.org/es/docs/Web/JavaScript)