Giter Club home page Giter Club logo

citruxtechnicaltestbackend's Introduction

CITRUX TECHNICAL TEST BACKEND

The backend of this project is built using Express and Node.js, written in TypeScript. It utilizes the Typegoose library for MongoDB database management. The API enables CRUD operations on articles and queries. Articles store summaries, content, and timestamps for efficient retrieval and management of information.

Installation

To install the project dependencies, ensure you have Yarn installed and follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Run yarn to install all dependencies

Important: Ensure you have Node.js version >18.17 installed on your system.

Usage

  1. Create a .env file in the project directory.
  2. Inside the .env file, define the necessary environment variables as per your configuration.
    PORT = 4000
    API_VERSION_ROUTE = /api/v1
    OPENAI_API_KEY = sk-proj-<Your API KEY>
    MONGO_DB_URI = mongodb+srv://<Username>:<Password>@...mongodb.net

It's important to set the variables PORT and API_VERSION_ROUTE as i show you to for proper usage.

  1. Run the development server with the following command:
yarn dev

Deployment

While this backend is deployed on Render, it's recommended to use it locally for optimal interaction with the frontend. However, if you wish to explore the deployed version, you can access it via the provided link.

Render Deployment

Contributors

  1. Esteban Maya

citruxtechnicaltestbackend's People

Contributors

estebanma12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.