Skip to content

dna-technology/dna-task-festivals-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task project

Prerequisites

Project structure

web

Web application written in React (bootstrapped from Create React App). Runs on http://localhost:3000. Uses React Redux Toolkit for state management.

api

Simple vanilla Node.js backend server for REST API. Runs on http://localhost:8000. Available endpoints:

  • /users/register POST

    Request: { email: string, password: string }

    Response: { id: string, email: string, balance: number }

    Error: { error: string }

  • /users/login POST

    Request: { email: string, password: string }

    Response: { id: string, email: string, balance: number }

    Error: { error: string }

  • /users/acount/top-up

    Request: { userId: string, amount: number }

    Response: { newBalance: number }

    Error: { error: string }

contract

Contains TypeScript type definitions shared by web and api.

Scripts

  • npm run api - start backend server (localhost:8000)
  • npm run web - start web app server (localhost:3000)
  • npm run test - run unit tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published