Code Monkey home page Code Monkey logo

express-locallibrary-tutorial's Introduction

LibraryBook using Express JS

Thanks for visit my repository. This is a practice of a tutorial mdm web doc.

In this tutorial, you can practice of tools like mongoose, pug, javascript, docker.

I make some changes, for example I replace the remote connection of the data base for a local database.

How to install my project locally

First clone the repository and install the dependencies:

git clone [email protected]:hroddev/express-locallibrary-tutorial.git
npm i

Before you need create an .env file in your project root with the next environment variables and replace the values.

MONGO_ROOT_USER=<USER ROOT>
MONGO_ROOT_PASSWORD=<PASS>
MONGOEXPRESS_LOGIN=<USER>
MONGOEXPRESS_PASSWORD=<PASS>

Next, you need have installed the Docker and Docker compose. This is the official guide for install.

Run the docker compose:

docker compose up

Add dummy data from the file populatedb.js

node populatedb.js

Run the nodemon in other tab:

// Windows
SET DEBUG=express-locallibrary-tutorial:* & npm run dev

// Linux
DEBUG=express-locallibrary-tutorial:* npm run dev

Open your browser, put this url and tell me what you think :)

http://localhost:3000/

I like the feedback so, feel free to comment and if you have a question too.

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.