Skip to content

CoteArthur/OFB-content-sharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web application meant to smoothen up content sharing within the OFB.

See the internship report for more informations. Contact me if you do not speak french and would still like more infos.

Deploy

Pre-Requisites:

  1. NodeJS (version 12+)
  2. Node Package Manager (npm)
  3. Maria DB Server

Database setup:

sudo mysql
    CREATE DATABASE ofb;
sudo mysql -p ofb < db-template.sql
sudo mysql
    CREATE USER 'server'@'localhost' IDENTIFIED BY 'server';
    GRANT ALL PRIVILEGES ON ofb.* TO 'server'@'localhost';

Nodemailer setup:

gmail-credentials.ts is missing at server/src/config, here's a template:

export const CREDS_USER: string = "email adress";
export const CREDS_PASSWORD: string = "gmail password";

You need to turn on less secure apps in order for smtp to work.

Building

Local:

npm i
npm start

cd server
npm i
npm run dev

Production:

npm i
npm run build

cd server
npm i
npm run build
npm start