Skip to content

Commit 330d27a

Browse files
authored
Merge pull request #1 from frckbrice/feat/setup-git-flow
Feat/setup git flow
2 parents be89b30 + e7b2b68 commit 330d27a

40 files changed

Lines changed: 2848 additions & 1751 deletions

‎.gitignore‎

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,56 @@
1-
node_modules
2-
dist
1+
# Dependencies
2+
node_modules/
3+
.pnp
4+
.pnp.js
35

6+
# Testing
7+
coverage/
8+
.nyc_output
9+
10+
# Production
11+
dist/
12+
build/
13+
14+
# Environment variables
415
.env
5-
server/reset-db
6-
middleware/logger
7-
/logs
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
# Logs
22+
logs/
23+
*.log
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
pnpm-debug.log*
28+
lerna-debug.log*
29+
30+
# OS
31+
.DS_Store
32+
Thumbs.db
33+
34+
# IDE
35+
.vscode/
36+
.idea/
37+
*.swp
38+
*.swo
39+
*~
40+
41+
# TypeScript
42+
*.tsbuildinfo
43+
44+
# Database
45+
*.db
46+
*.sqlite
47+
*.sqlite3
48+
49+
# Temporary files
50+
tmp/
51+
temp/
52+
*.tmp
53+
54+
# Misc
55+
.cache/
56+
.parcel-cache/

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ This is a production-ready Node.js backend application built with Express.js, po
9696
1. Clone the repository:
9797
```bash
9898
git clone <repository-url>
99-
cd museumCall_backend
99+
cd library-management-REST-API
100100
```
101101

102102
2. Install dependencies:
@@ -109,8 +109,8 @@ Create a `.env` file in the root directory with the following variables:
109109

110110
```env
111111
# Database
112-
DATABASE_URL=postgresql://user:password@localhost:5432/library_db
113-
DATAAPI_URL=your_neon_dataapi_url_if_using_neon
112+
DATABASE_localURL=postgresql://user:password@localhost:5432/library_db
113+
DATABASE_API_URL=your_neon_dataapi_url_if_using_neon
114114
115115
# Session
116116
SESSION_SECRET=your_session_secret_key

‎config/bucket-storage/cloudinary.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CloudinaryService {
3838

3939
try {
4040
const result = await cloudinary.uploader.upload(file as any, {
41-
folder: options.folder || 'museum-platform',
41+
folder: options.folder || 'library-platform',
4242
public_id: options.public_id,
4343
transformation: options.transformation,
4444
tags: options.tags,

‎direct-story-api.js‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎drizzle/meta/0000_snapshot.json‎

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"notNull": true,
1616
"default": "gen_random_uuid()"
1717
},
18-
"museum_id": {
19-
"name": "museum_id",
18+
"library_id": {
19+
"name": "library_id",
2020
"type": "uuid",
2121
"primaryKey": false,
2222
"notNull": true
@@ -57,12 +57,12 @@
5757
},
5858
"indexes": {},
5959
"foreignKeys": {
60-
"analytics_museum_id_museums_id_fk": {
61-
"name": "analytics_museum_id_museums_id_fk",
60+
"analytics_library_id_libraries_id_fk": {
61+
"name": "analytics_library_id_libraries_id_fk",
6262
"tableFrom": "analytics",
63-
"tableTo": "museums",
63+
"tableTo": "libraries",
6464
"columnsFrom": [
65-
"museum_id"
65+
"library_id"
6666
],
6767
"columnsTo": [
6868
"id"
@@ -101,8 +101,8 @@
101101
"notNull": true,
102102
"default": "gen_random_uuid()"
103103
},
104-
"museum_id": {
105-
"name": "museum_id",
104+
"library_id": {
105+
"name": "library_id",
106106
"type": "uuid",
107107
"primaryKey": false,
108108
"notNull": true
@@ -148,12 +148,12 @@
148148
},
149149
"indexes": {},
150150
"foreignKeys": {
151-
"contact_messages_museum_id_museums_id_fk": {
152-
"name": "contact_messages_museum_id_museums_id_fk",
151+
"contact_messages_library_id_libraries_id_fk": {
152+
"name": "contact_messages_library_id_libraries_id_fk",
153153
"tableFrom": "contact_messages",
154-
"tableTo": "museums",
154+
"tableTo": "libraries",
155155
"columnsFrom": [
156-
"museum_id"
156+
"library_id"
157157
],
158158
"columnsTo": [
159159
"id"
@@ -179,8 +179,8 @@
179179
"notNull": true,
180180
"default": "gen_random_uuid()"
181181
},
182-
"museum_id": {
183-
"name": "museum_id",
182+
"library_id": {
183+
"name": "library_id",
184184
"type": "uuid",
185185
"primaryKey": false,
186186
"notNull": true
@@ -245,12 +245,12 @@
245245
},
246246
"indexes": {},
247247
"foreignKeys": {
248-
"events_museum_id_museums_id_fk": {
249-
"name": "events_museum_id_museums_id_fk",
248+
"events_library_id_libraries_id_fk": {
249+
"name": "events_library_id_libraries_id_fk",
250250
"tableFrom": "events",
251-
"tableTo": "museums",
251+
"tableTo": "libraries",
252252
"columnsFrom": [
253-
"museum_id"
253+
"library_id"
254254
],
255255
"columnsTo": [
256256
"id"
@@ -276,8 +276,8 @@
276276
"notNull": true,
277277
"default": "gen_random_uuid()"
278278
},
279-
"museum_id": {
280-
"name": "museum_id",
279+
"library_id": {
280+
"name": "library_id",
281281
"type": "uuid",
282282
"primaryKey": false,
283283
"notNull": true
@@ -335,12 +335,12 @@
335335
},
336336
"indexes": {},
337337
"foreignKeys": {
338-
"media_items_museum_id_museums_id_fk": {
339-
"name": "media_items_museum_id_museums_id_fk",
338+
"media_items_library_id_libraries_id_fk": {
339+
"name": "media_items_library_id_libraries_id_fk",
340340
"tableFrom": "media_items",
341-
"tableTo": "museums",
341+
"tableTo": "libraries",
342342
"columnsFrom": [
343-
"museum_id"
343+
"library_id"
344344
],
345345
"columnsTo": [
346346
"id"
@@ -355,8 +355,8 @@
355355
"checkConstraints": {},
356356
"isRLSEnabled": false
357357
},
358-
"public.museums": {
359-
"name": "museums",
358+
"public.libraries": {
359+
"name": "libraries",
360360
"schema": "",
361361
"columns": {
362362
"id": {
@@ -435,8 +435,8 @@
435435
"notNull": false,
436436
"default": false
437437
},
438-
"museum_type": {
439-
"name": "museum_type",
438+
"library_type": {
439+
"name": "library_type",
440440
"type": "text",
441441
"primaryKey": false,
442442
"notNull": true
@@ -474,8 +474,8 @@
474474
"notNull": true,
475475
"default": "gen_random_uuid()"
476476
},
477-
"museum_id": {
478-
"name": "museum_id",
477+
"library_id": {
478+
"name": "library_id",
479479
"type": "uuid",
480480
"primaryKey": false,
481481
"notNull": true
@@ -555,12 +555,12 @@
555555
},
556556
"indexes": {},
557557
"foreignKeys": {
558-
"stories_museum_id_museums_id_fk": {
559-
"name": "stories_museum_id_museums_id_fk",
558+
"stories_library_id_libraries_id_fk": {
559+
"name": "stories_library_id_libraries_id_fk",
560560
"tableFrom": "stories",
561-
"tableTo": "museums",
561+
"tableTo": "libraries",
562562
"columnsFrom": [
563-
"museum_id"
563+
"library_id"
564564
],
565565
"columnsTo": [
566566
"id"
@@ -687,10 +687,10 @@
687687
"type": "text",
688688
"primaryKey": false,
689689
"notNull": true,
690-
"default": "'museum_admin'"
690+
"default": "'library_admin'"
691691
},
692-
"museum_id": {
693-
"name": "museum_id",
692+
"library_id": {
693+
"name": "library_id",
694694
"type": "uuid",
695695
"primaryKey": false,
696696
"notNull": true
@@ -712,12 +712,12 @@
712712
},
713713
"indexes": {},
714714
"foreignKeys": {
715-
"users_museum_id_museums_id_fk": {
716-
"name": "users_museum_id_museums_id_fk",
715+
"users_library_id_libraries_id_fk": {
716+
"name": "users_library_id_libraries_id_fk",
717717
"tableFrom": "users",
718-
"tableTo": "museums",
718+
"tableTo": "libraries",
719719
"columnsFrom": [
720-
"museum_id"
720+
"library_id"
721721
],
722722
"columnsTo": [
723723
"id"

0 commit comments

Comments
 (0)