Giter Club home page Giter Club logo

weteach's Introduction

Hey All, I finally rebased the git so here are some getting started instructions.

Set up dev envrionment

First, to get the project on your computer please run the following commands in order.

git clone https://github.com/tomhobeika/CSIT321.git

If you are developing for front end or back end you may want to add --branch Front or --branch Back . Once cloned run:

cd CSIT321

npm install

npm start

Now the project should be running your browser.

Keeping the project up to date

Before writing code to ensure the project is up to date you should always run:

git pull

Once you have written code you wish to upload simply run:

git add -A

git commit -m "Short message about the update details"

git push

Deployment

To deploy the porject to the server the following steps should be done:

npm run build

This will make a build folder ready for the server

git add ./build/

git commit -m "Deployment Build"

These commands will push the new build to your branch.

git checkout main

git merge master

git push origin main

These commands will merge your branch with main.

Now you should log into the server and simply run:

bash publish

or

bash ~/import

To publish the videos run this:

sudo ln -s /weteach/data/public /var/www/html/media_content

To start the API:

pm2 start /weteach/api/server.js -n dbdaemon --attach

For the upload component

pm2 start /weteach/upload/server.js -n uploaddaemon --attach

To check the API is running simply run (under Dev login):

pm2 list

If not running type

pm2 resurrect

To restart the API, the API auto restarts in dev if changes are made to the source code:

pm2 kill

pm2 resurrect

weteach's People

Contributors

dp964 avatar zahkc avatar tomhobeika avatar smw733 avatar lochlainn-code avatar turoruheog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.