Solution of third task of home assignment from BSA.
๐พ
Built entirely in Typescript
๐พ
๐ง
Development server based on tsc
compiler and nodemon
to refresh server on file changes ๐ง
- Clone this repo by
git clone https://bitbucket.org/yugisu/bsa19-express.git
. - Go into the created folder
cd bsa19-express
. - Run
npm install
to install dependencies. - Run
npm start
to start development server. - Run
npm run build
to transpile files tobuild/
folder.
This is an API server, so the endpoints are:
- GET
users/
to receive the list of all users from file; - GET
users/:id
to receive info about one user with specifiedid
; - POST
users/
to add new user (adds new user to thestorage/users.json
file); - PUT
users/:id
to modify user withid
; - DELETE
users/:id
to delete user withid
;
(c) yugisu