Giter Site home page Giter Site logo

ecwk / bed-assignment-2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25.47 MB

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

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

License: MIT License

JavaScript 24.52% Shell 0.18% CSS 0.08% TypeScript 74.86% PowerShell 0.36%
express javascript jest nextjs typescript

bed-assignment-2's Introduction

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

bed-assignment-2's People

Contributors

ecwk avatar

Watchers

 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.