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