Giter Site home page Giter Site logo

express-crud's Introduction

User CRUD With JWT Authentication

Requirements

  • Docker and Docker Compose

Installation and Run

  1. Clone the repository.

  2. Navigate to the project directory:

    cd /path-to-project
  3. Run the following command to view the list of available commands:

    bash run.sh
  4. You will be presented with options. To run the project:

    • Type 1 and press Enter.
  5. To run end-to-end (E2E) tests:

    • Follow the steps above to run the project.
    • Type 3 and press Enter. (Note: Ensure that you have already run the project before running the tests.)
  6. To stop the containers:

    • Follow the steps above to run the project.
    • Type 2 and press Enter.
  7. To build the project:

    • Follow the steps above to run the project.
    • Press 4 and press Enter.
  8. To exit from the shell command:

    • Press 5 and press Enter.

API Documentation

You can find the Postman collection in the root directory of the project.

To run the Postman collection:

  1. Import the collection into Postman.

  2. Run the project (refer to the Installation and Run section for the guide).

  3. To login:

    • Call the /api/auth endpoint, which will set the auth token for all request headers.

    • Default Email and password to login:

      {
          "email": "[email protected]",
          "password": "password"
      }

TODO

  • Write More conditions in E2E tests
  • Write Unit tests

express-crud's People

Contributors

rijalsubash avatar

Watchers

subash rijal 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.