GithubHelp home page GithubHelp logo

yookataleapi's Introduction

Yookatale Node.js API

This is a Node.js API project for Yookatale.

Getting Started

These instructions will help you set up and run the project on your local machine.

Prerequisites

  • Node.js (v16.13.0 or higher)
  • npm (v7.24.0 or higher)

Installing Dependencies

Run the following command to install the project's dependencies:

npm install

Configuration

Create a .env file in the root directory of the project and add your configuration settings. You can use the provided .env.sample file as a template.

# .env

PORT=3000

localDB=mongodb://localhost:27017/yookatale

PROD_DB = your-productionUrl

JWT_SECRET=your-secret-key

CLOUD_NAME: Cloudinary CLOUD_NAME,

API_KEY: Cloudinary API_KEY,

API_SECRET: Cloudinary API_SECRET,

Scripts

npm run build - Build the TypeScript source files into JavaScript.
npm start - Start the server in production mode.
npm run dev - Start the server in development mode with automatic reloading.

Running the Application

To start the application in development mode, run:

npm run dev

The API will be accessible at http://localhost:5000 by default. You can change the port in the .env file.

API Routes

/api/v1/order/ - Manage order-related operations.

/api/v1/auth/ - Authentication, User and login operations

Built With

  • Node.js - JavaScript runtime

  • Express.js - Web framework for Node.js

  • MongoDB - NoSQL database

  • Mongoose - MongoDB object modeling for Node.js

  • bcryptjs - Password hashing library

  • jsonwebtoken - JWT authentication library

  • cors - Cross-Origin Resource Sharing

  • dotenv - Environment variable management

  • Cloudinary - Image and Video Management for the Cloud

  • TypeScript - Typed JavaScript

yookataleapi's People

Contributors

isiagi 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.