Skip to content

RUCOGS/rucogs.github.io-backend

Repository files navigation

RUCOGS Website Backend

The backend to our website. It hosts a database containing all our projects and will be linked to the discord bot.

Node Version: 20.13.1

Running Backend Locally

To build and run the backend, run

> npm run start:rebuild

To recompile the typescript files and run the backend, without regenerating Typetta scripts, run,

> npm run start:recompile

Setting Up Local Development

  1. Clone this repository onto your machine.

  2. Before you start development, you must have Node.js installed. "Node.js" is a runtime environment, and downloading it should also give you the "npm" package manager. You can download the latest version of Node.js with npm from here.

  3. Install all the relevant dependencies by running the following inside the folder containing the repository.

> npm i
  1. Set up the configuration files. These files contain sensitive information, therefore they're omitted from the git repository. To make your own configuration files, you must copy the config templates inside the config folder and remove the .template part from the file such that your config files have a .config.json file ending.

Backend Hosting (Linode)

  1. Installing apache on Linode
  2. Installing apache to serve nodejs
  3. Getting https cert with apache on ubuntu)
  4. Using git to manage a website
  5. Making nodejs app into linux service

Releases

No releases published

Packages

No packages published

Languages