Giter Site home page Giter Site logo

radoslaw-wolnik / local-library-tutorial Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.42 MB

this is a backend tutorial project for node.js with express following https://developer.mozilla.org/en-US/docs/Learn/Server-side/

JavaScript 69.48% CSS 0.52% Pug 28.93% Dockerfile 1.07%

local-library-tutorial's Introduction

local-library-tutorial

this is a backend tutorial project for node.js with express following: https://developer.mozilla.org/en-US/docs/Learn/Server-side/

npm install express-generator -g express express-local-library-tutorial --view=pug

to run: win PS> ENV:DEBUG = "express-local-library-tutorial:"; npm start win CMD> SET DEBUG=express-local-library-tutorial: & npm start

to reload after save:

npm install --save-dev nodemon

and now after adding necessary scripts to the package.json to start:

npm run serverstart

MonoDB is in the container, as well as our backend app docker-compose up --build

populate db

node populatedb "mongodb://mongo:27017/my_database" this works if u split the console to two so that we can run the script on the docker containers [|] icon beside the trash icon docker-compose up -build docker-compose exec app node populatedb "mongodb://mongo:27017/my_database" propably i could also do sth like docker-compose up --build &

route paths as regular expressions: ? : The endpoint must have 0 or 1 of the preceding character (or group), e.g. a route path of '/ab?cd' will match endpoints acd or abcd. + : The endpoint must have 1 or more of the preceding character (or group), e.g. a route path of '/ab+cd' will match endpoints abcd, abbcd, abbbcd, and so on. * : The endpoint may have an arbitrary string where the * character is placed. E.g. a route path of '/ab*cd' will match endpoints abcd, abXcd, abSOMErandomTEXTcd, and so on. () : Grouping match on a set of characters to perform another operation on, e.g. '/ab(cd)?e' will perform a ?-match on the group (cd) โ€” it will match abe and abcde.

Need to fix genre_detail page/view

Deployment: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/deployment I need to go throught them all one by one so they are correct for my implementation It changes a lot logging, sending, protection against vulnerabilities etc

local-library-tutorial's People

Contributors

radoslaw-wolnik avatar

Watchers

 avatar

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.