{"id":19485646,"url":"https://github.com/pyozer/nodepostgresqlreact","last_synced_at":"2025-07-24T17:03:42.803Z","repository":{"id":39494805,"uuid":"161412284","full_name":"Pyozer/NodePostgreSQLReact","owner":"Pyozer","description":"Training project to use an Express Node server (API) with a PostgreSQL database and a React App for client","archived":false,"fork":false,"pushed_at":"2022-12-10T01:49:57.000Z","size":5002,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T07:48:36.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pyozer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-12T00:48:33.000Z","updated_at":"2019-07-18T08:40:54.000Z","dependencies_parsed_at":"2022-08-29T03:21:08.472Z","dependency_job_id":null,"html_url":"https://github.com/Pyozer/NodePostgreSQLReact","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2FNodePostgreSQLReact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2FNodePostgreSQLReact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2FNodePostgreSQLReact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2FNodePostgreSQLReact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pyozer","download_url":"https://codeload.github.com/Pyozer/NodePostgreSQLReact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240722256,"owners_count":19847073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T20:29:13.851Z","updated_at":"2025-02-25T18:30:29.155Z","avatar_url":"https://github.com/Pyozer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodePostgreReact\n\nThis project is a school project to learn NodeJS and React.\nThe website build with React, manage accounts and user's projects using API server (NodeJS)\n\nI used create-react-app to build React App and Express to make the node server.\n\nThere is differents routes on the server:\n\n| Method | Route                       | Description                            | AuthToken |\n| ------ | --------------------------- | -------------------------------------- | --------- |\n| POST   | /auth/signIn                | Login user and get auth token          | No        |\n| POST   | /auth/signUp                | Register a new user and get auth token | No        |\n| GET    | /users                      | Get all users                          | No        |\n| GET    | /users/me                   | Get connected user (yse Auth Token)    | Yes       |\n| GET    | /users/:identifier          | Get specific user by ID                | No        |\n| PUT    | /users/:identifier          | Update specific user                   | Yes       |\n| DELETE | /users/:identifier          | Delete user account                    | Yes       |\n| GET    | /users/:identifier/projects | Get all projects of a specific user    | No        |\n| GET    | /projects/                  | Get all projects                       | No        |\n| GET    | /projects/:projectId        | Get a specific project                 | No        |\n| PUT    | /projects/:projectId        | Update a project                       | Yes       |\n| DELETE | /projects/:projectId        | Delete a project                       | Yes       |\n\nWhen it's require, you must pass your AuthToken as Bearer Token in the header, in 'Authorization'.\n\n## Structure of JSON response\n\nIf request is a success :\n\n```\n{\n    \"data\": Object | Array,\n    \"meta\": Object,\n}\n```\n\nIf request failure :\n\n```\n{\n    \"error\": {\n        \"message\": \"An error message\"\n    }\n}\n```\n\n## Usage\n\nTo launch the app, start first the Node server :\n`cd server \u0026\u0026 npm run dev`\n\nAnd then launch the react app :\n`cd client \u0026\u0026 npm start`\n\nYou can build the react app for production with this command:\n`npm build`\n\n**Info:** You can use `yarn` instead of `npm` if you want\n\n## Screenshots\n\n### Sign In/Up\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/signUp.png\" width=\"550\" alt=\"Sign Up\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/signIn.png\" width=\"550\" alt=\"Sign In\"\u003e\n\n### Dashboard\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/dashboard.png\" width=\"550\" alt=\"Dashboard\"\u003e\n\n### Profile\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/editProfile.png\" width=\"550\" alt=\"Edit profile\"\u003e\n\n### Projects\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/addProject.png\" width=\"550\" alt=\"Add project\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/editProject.png\" width=\"550\" alt=\"Edit project\"\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/deleteProject.png\" width=\"550\" alt=\"Delete project\"\u003e\n\n### Dark theme\n\n\u003cimg src=\"https://raw.githubusercontent.com/Pyozer/NodePostgreSQLReact/master/demo_img/dashboard_dark.png\" width=\"550\" alt=\"Dashboard in dark mode\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyozer%2Fnodepostgresqlreact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyozer%2Fnodepostgresqlreact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyozer%2Fnodepostgresqlreact/lists"}