Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.61 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.61 KB

Order Processing API NodeJS

A RESTful API providing endpoints for CRUD operations and user authentication, supporting the integration between the web and mobile applications.

order-processing

How to Setup on local

  1. Clone the Repository
    git clone https://github.com/sasankadeshapriya/order-processing-api-nodejs.git
    cd order-processing-api-nodejs
    
    
  2. Create nodemon.json File
    In the root directory of the project, create a file called nodemon.json and add the following content. Replace the placeholder values with your actual values:
    {
    	"env": {
        	"JWT_KEY": "I$^%6szhGUMLNv",
        	"EMAIL_USER": "[email protected]",
        	"EMAIL_PASS": "ss@~*9eR;",
        	"PORT": 4000,
        	"EMAIL_HOST": "mail.test.com",
        	"EMAIL_PORT": 465,
        	"DB_USERNAME": "root",
        	"DB_PASSWORD": null,
        	"DB_DATABASE": "order_processing_system",
        	"DB_HOST": "127.0.0.1",
        	"DB_DIALECT": "mysql"
    	}
    }
    
  3. Install Dependencies
    npm install
    
  4. Install Dependencies
    npm install
    
  5. Run the Seeder
    Add your admin details to create-admin seeder, save it and run seeder.
    sequelize db:seed:all
    
  6. Verify the Setup
    Open your browser and navigate to http://localhost:4000. You should see a message indicating that the server is working!

Related Repositories

git clone https://github.com/sasankadeshapriya/order-processing-backend-laravel.git
git clone https://github.com/sasankadeshapriya/order-processing-app-flutter.git