{"id":21037016,"url":"https://github.com/redjanvier/nodejs-mvc-bookstore","last_synced_at":"2026-04-07T23:31:22.881Z","repository":{"id":43963869,"uuid":"220939049","full_name":"RedJanvier/nodejs-mvc-bookstore","owner":"RedJanvier","description":"Bookstore with Node Js, EJS, Express-session, Postgres and so much more","archived":false,"fork":false,"pushed_at":"2023-01-24T01:57:24.000Z","size":7100,"stargazers_count":2,"open_issues_count":20,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-03-13T20:42:06.593Z","etag":null,"topics":["bookstore","ejs","express-session","knex","login-system","node","postgres"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedJanvier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-11T08:53:28.000Z","updated_at":"2021-01-29T15:00:08.000Z","dependencies_parsed_at":"2023-02-13T10:31:10.410Z","dependency_job_id":null,"html_url":"https://github.com/RedJanvier/nodejs-mvc-bookstore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RedJanvier/nodejs-mvc-bookstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedJanvier%2Fnodejs-mvc-bookstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedJanvier%2Fnodejs-mvc-bookstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedJanvier%2Fnodejs-mvc-bookstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedJanvier%2Fnodejs-mvc-bookstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedJanvier","download_url":"https://codeload.github.com/RedJanvier/nodejs-mvc-bookstore/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedJanvier%2Fnodejs-mvc-bookstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31533823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bookstore","ejs","express-session","knex","login-system","node","postgres"],"created_at":"2024-11-19T13:23:42.110Z","updated_at":"2026-04-07T23:31:22.856Z","avatar_url":"https://github.com/RedJanvier.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LOGIN SYSTEM BY redjanvier\n\n[![DeepScan grade](https://deepscan.io/api/teams/6051/projects/7919/branches/88156/badge/grade.svg)](https://deepscan.io/dashboard#view=project\u0026tid=6051\u0026pid=7919\u0026bid=88156)\n[![Maintainability](https://api.codeclimate.com/v1/badges/337605d4ffd06ad9890b/maintainability)](https://codeclimate.com/github/RedJanvier/nodejs-mvc-bookstore/maintainability)\n[![Coverage Status](https://coveralls.io/repos/github/RedJanvier/nodejs-mvc-bookstore/badge.svg?branch=develop)](https://coveralls.io/github/RedJanvier/nodejs-mvc-bookstore?branch=develop)\n\nA lightweight nodejs based bookstore where users manage books and can sell them to other users.\n\n## PREREQUISITES\n\n- NodeJs installed. (find it)[https://nodejs.org/en/]\n- Text Editor of your choice. (find it)[https://code.visualstudio.com/]\n- PostgreSQL installed. (find it)[https://www.enterprisedb.com/downloads/postgres-postgresql-downloads]\n\n## Features to implement\n\n- ✔ Anyone should be able to register\n- ✔ Anyone should be able to see all books on the page\n- ✔ Anyone should be able to get all details of any User\n- ✔ User(any) should be able to login into his/her account\n- ✔ User(logged in) should be able to see all users on the app\n- ✔ User(logged in) should be able to logout of his/her account\n- ❌ User(logged in) should be able to create/publish a book in the store\n- ❌ User(logged in) should be able to edit/re-publish a book to the store\n- ❌ User(logged in) should be able to delete/unpublish a book from the store\n\n## Initial setup\n\n\u003e To setup the project you must run the terminal command `npm run reset:db` and create a `.env file` in project root folder based on `.example.env`\n\n\u003e Then install project dependecies using the command `npm install`\n\n\u003e To start the project in development mode run `npm run dev` and in production mode `npm start`\n\n## Routes\n\n#### Welcome screen\n\n```\n[GET] /\n\n:body: none\n\n:result: Welcome screen with login and register links\n```\n\n#### User login\n\n```\n[GET] /users/login\n\n:body: none\n\n:result: Login screen with a register link\n\n----------------------------------------------\n\n[POST] /users/login\n\n:body: {\n  email \"STRING\",\n  password \"STRING\"\n}\n\n:result: Dashboard screen with a logout link \u0026 users list\n```\n\n#### User register\n\n```\n[GET] /users/register\n\n:body: none\n\n:result: Register screen with a login link\n\n[POST] /users/register\n\n:body: {\n    name \"STRING\",\n    password \"STRING\",\n    email \"STRING\",\n    age \"INTEGER\",\n    gender \"STRING\",\n}\n\n:result: Login screen with register success message\n```\n\n## Tech stack\n\n- bcrypt\n- Node JS\n- Express JS\n- mocha \u0026 chai\n- jsonwebtokens\n- PostgreSQL with knex\n- express ejs (template engine)\n\n## Author\n\n### **RedJanvier**\n\n## Contacts\n\n[Github](https://github.com/RedJanvier)\n[Twitter](https://twitter.com/red_janvier)\n[YouTube](https://www.youtube.com/channel/UCrQBNajZa-ibHBerJQ0kAiQ)\n[Facebook](https://facebook.com/jan.h.red)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredjanvier%2Fnodejs-mvc-bookstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredjanvier%2Fnodejs-mvc-bookstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredjanvier%2Fnodejs-mvc-bookstore/lists"}