A REST API for User database developed using new Deno language

REST API in Deno

A REST API for User database developed using new Deno language with mongodb integration.
Made By Smith Gajjar

About The Project

A REST API Client for User database developed using new Deno language with mongodb integration. It uses 3rd party libraries like oak for router and server configurations. deno_mongo used for mongodb configuration.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Installation

  1. Clone the repo
git clone https://github.com/smithg09/Deno_REST_API
  1. Deno installation
    # Using PowerShell ( Windows )
    iwr https://deno.land/x/install/install.ps1 -useb | iex

    #Using Shell (macOS, Linux):
    curl -fsSL https://deno.land/x/install/install.sh | sh

View more installation options here

  1. MongoDB installation

     Download MongoDB Compass [here](https://www.mongodb.com/download-center/compass) <br />
     Or Download MongoDB Community Server [here](https://www.mongodb.com/download-center/community) 
    
    

Usage

To run this application you need set some flags due to security concerns built into Deno bydefault.

start app

deno run --allow-env --allow-write --allow-read --allow-plugin --allow-net --unstable index.ts

This will start the local server on PORT 4000. Port can be changed from config/environment.ts file. Once server is started, Test using Postman.

  • Available Routes :
    • /users : GET
    • /user : POST
    • /user/:id : GET / PUT / DELETE

reload plugins app

deno run --allow-env --reload --allow-write --allow-read --allow-plugin --allow-net --unstable index.ts

For more examples, please refer to the Documentation

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Download Details:

Author: smithg09

Source Code: https://github.com/smithg09/Deno_REST_API

#deno #node #nodejs #javascript

A REST API for User database developed using new Deno language
2.40 GEEK