Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sample App used in the hands-on labs during Developer Days

License

NotificationsYou must be signed in to change notification settings

mongodb-developer/library-management-system

Repository files navigation

This is a library management system built with the MEAN (MongoDB, Express, Angular, Node.js) stack.

Running the project

  1. Clone the repository.

    git clone git@github.com:mongodb-developer/library-management-system.git library
  2. Install the dependencies in the root level of the project.

    library/

    npm install
  3. Set yourAtlas URI connection string, database name and server port inserver/.env. Make sure you replace the username and password placeholders with your own credentials.

    library/server/.env

    PORT="5400"DATABASE_URI="mongodb+srv://<username>:<password>@m0.kwqkoewm.mongodb.net"DATABASE_NAME="library"SECRET="secret"
  4. Start theserver application.

    library/server/

    npm install && npm start
  5. Open a new terminal window and start theclient application.

    library/client/

    npm install && npm start
  6. When both applications are built and running, open your browser onhttp://localhost:4200/.

Executing the tests

Currently, the project has only API tests implemented withsupertest andmocha. To execute them, navigate to theserver/ directory and run:

library/server/

npm test

Pre-commit hook

The project utilizesHusky to execute actions before every commit. The pre-commit hook, located in.husky/pre-commit, lints the code and runs the API tests.

Use at your own risk; not a supported MongoDB product

About

Sample App used in the hands-on labs during Developer Days

Resources

License

Stars

Watchers

Forks

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp