Skip to content

erik-sth/ts-node-server-voting

Repository files navigation

Voting Backend

The User-Website to this backend: https://github.com/erik-sth/ts-website-voting-user and the admin dashboard: https://github.com/erik-sth/ts-website-voting-admin

Introduction

This project was initiated for our 'P-Seminar "Event and Dance"'. We required an elegant solution for conducting prom king and queen elections.

Commands

Installation

Initiate the installation of project dependencies with the following command:

npm install

Development

To run the development server, use:

npm run dev

Testing

Execute the following command to run tests in watch mode:

npm test

Build

To build the project, use:

npm run build

Linting

To run ESLint for TypeScript files, use:

npm run lint

Project Structure

  • src/: Source code directory
    • server.ts: Main server file
    • ...

Dependencies

  • body-parser: ^1.20.2
  • cors: ^2.8.5
  • dotenv: ^16.3.1
  • express: ^4.18.2
  • express-rate-limit: ^7.1.5
  • mongoose: ^8.0.3
  • supertest: ^6.3.3
  • winston: ^3.11.0

Development Dependencies

  • @types/cors: ^2.8.17
  • @types/eslint: ^8.44.9
  • @types/express: ^4.17.21
  • @types/jest: ^29.5.11
  • @types/node: ^20.10.4
  • @types/supertest: ^2.0.16
  • @typescript-eslint/eslint-plugin: ^6.14.0
  • @typescript-eslint/parser: ^6.14.0
  • eslint: ^8.55.0
  • eslint-config-standard-with-typescript: ^39.1.1
  • eslint-plugin-import: ^2.28.1
  • eslint-plugin-n: ^16.2.0
  • eslint-plugin-promise: ^6.1.1
  • jest: ^29.7.0
  • ts-jest: ^29.1.1
  • ts-node: ^10.9.1
  • typescript: ^5.3.3

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published