Skip to content

dongchenxie/porton-health-industry-project-backend

Repository files navigation

Porton Health Industry Project Backend

Installation

  1. Install necessary dependencies:

    $ npm install
    
  2. Configure MongoDB connection:

    • You can use database named "test" already created with existing connection string. (skip to step 3, and use the preset accounts in Development Accounts section)

    • If you would like to create a new database:

      1. Modify the connection string in .env file:

        DB_CONNECTION = [your connection string ex. mongodb+srv://xxxxxxxx]
        
      2. Do step 4 to run the program first, it will generate a system admin account:

      3. You can log in the front end with the system admin account just created:

        email: [email protected]
        password: password
        
  3. Download MongoDB Compass for database management:

    https://www.mongodb.com/download-center/compass

  4. Run the program:

    $ npm start
    

ERD

ERD

Development Accounts:

system admin:

email: [email protected]

password: 123456


client admin with seeded data:

email: [email protected]

password: password


client admin:

email: [email protected]

password: 1234567

APIs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •