Skip to content

Repository files navigation

Task 12 - Typescript

Description

The goal of this project is to convert/refactor the code from the previous task to Typescript

Requirement

To run or test this code ensure you have Node installed in your system and a MongoDB account

Running the code

To run it locally on your device

  1. Pull this repo to your local machine

  2. Rename the example.env file to .env and put the link to your MongoDB with the password as instructed on the mongoDB website

  3. Run the following code to npm run serve and use any of the link in the Postman software to test it

Running this on your local machine

To sign up and log in you need

Email and a password that contains 8 characters and user type which is guest by default if not added

To create a RoomType you need admin log in and details needed

room name

To create a RoomType you need to be logged in and details needed

room name, room_type (which will be the id of the roomtype) and price

Please check the samplecode.js file for sample code

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages