GithubHelp home page GithubHelp logo

learn-sequelize-api's Introduction

sequelize-api

Repository for Learning Sequelize & JWT Auth

For sure, this is my learning repository. if you see the code is awkwkard, bad, or not practicing clean and good code. sorry for it. I just explore code and learn from a lot of resource without concerning about that.

I will improve this code to my next project, soon.

Its include : Sequelize, Migration, Seeder, JWT Auth, Setup Swagger

## Prerequisites

Before running the application, make sure you have the following installed on your machine:

- [Node.js](https://nodejs.org/)
- [npm](https://www.npmjs.com/) (Node Package Manager)

Getting Started

  1. Clone this repository to your local machine:

    git clone https://github.com/Hafizcode02/sequelize-api.git
  2. Navigate to the project directory:

    cd sequelize-api
  3. Install the dependencies:

    npm install

SETTING UP .ENV File

before starting running the application, set env file based on your needs:

NODE_ENV=

# Database Config
DB_DATABASE= 
DB_HOST= 
DB_USER=
DB_PASSWORD= 

# Server Config
SERVER_ADDRESS=
SERVER_PORT=
CORS_PORT= 
SECRET_KEY=

Running the Application

To start the Express.js server and run the file upload example, use the following command:

npm start db-init
npm start dev

API Endpoint List

You can see my postman collection in this repository

learn-sequelize-api's People

Contributors

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