ecwk / bed-assignment-2

A submission for my school's backend web development (BED) assignment.

Home Page:https://bed-assignment-2.deploy.cnoside.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BED Assignment 2

This is a submission for my school's backend web development (BED) assignment.

The app is hosted on https://bed-assignment-2.deploy.cnoside.dev

What's inside?

Tech Stack

Frontend

Backend

Folder Structure

  • apps/api: API powered by express
  • apps/web: web app powered by next.js
  • packages/eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier used by apps/web)
  • packages/scripts: scripts used throughout the monorepo (includes custom-commit for formatting git commits)

Utilities

How to Setup?

Prerequisites

Setup The Environment

Refer to .env.example in both apps/api and apps/web.

Create .env in apps/api and .env.local in apps/web.

Run SQL Scripts

Linux (Bash)

cd bed-assignment-2/bin

chmod 700 db.sh

./db.sh

Windows (PowerShell)

cd bed-assignment-2\bin

./db.ps1

Start the App

For Development

To develop all apps and packages, run the following command:

# Ensure that NODE_ENV=development
cd bed-assignment-2

npm run dev

For Production

To start the app for production, run the following commands:

# Ensure that NODE_ENV=production
cd bed-assignment-2

npm run build

npm run start

Admin Credentials

By default the only admin is root

The root admin password should be changed after the first login.

Then, add more admins with the web interface

About

A submission for my school's backend web development (BED) assignment.

https://bed-assignment-2.deploy.cnoside.dev

License:MIT License


Languages

Language:TypeScript 74.9%Language:JavaScript 24.5%Language:PowerShell 0.4%Language:Shell 0.2%Language:CSS 0.1%