{"id":22446823,"url":"https://github.com/fingertips18/junior-fullstack-exam","last_synced_at":"2026-04-28T12:32:10.815Z","repository":{"id":253796070,"uuid":"844488264","full_name":"Fingertips18/junior-fullstack-exam","owner":"Fingertips18","description":"🤓This repository contains my junior full stack developer exam project, built using Next.js for the frontend and Flask for the backend. The project demonstrates the integration of a modern React-based frontend with a robust Python-based backend API, showcasing my skills in full stack development.","archived":false,"fork":false,"pushed_at":"2025-03-26T13:00:35.000Z","size":1411,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T11:23:08.902Z","etag":null,"topics":["backend-api","flask","flask-restful","flask-sqlalchemy","front-end","fullstack-development","jwt-authentication","nextjs","python","typescript"],"latest_commit_sha":null,"homepage":"https://junior-fullstack-exam-fingertips.vercel.app","language":"TypeScript","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/Fingertips18.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T11:14:58.000Z","updated_at":"2025-01-20T05:58:33.000Z","dependencies_parsed_at":"2024-08-29T17:23:37.946Z","dependency_job_id":"4e706d2f-bc7f-4550-8aef-43b1374ca9a1","html_url":"https://github.com/Fingertips18/junior-fullstack-exam","commit_stats":null,"previous_names":["fingertips18/junior-fullstack-exam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fingertips18/junior-fullstack-exam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fingertips18%2Fjunior-fullstack-exam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fingertips18%2Fjunior-fullstack-exam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fingertips18%2Fjunior-fullstack-exam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fingertips18%2Fjunior-fullstack-exam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fingertips18","download_url":"https://codeload.github.com/Fingertips18/junior-fullstack-exam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fingertips18%2Fjunior-fullstack-exam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856775,"owners_count":24657700,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["backend-api","flask","flask-restful","flask-sqlalchemy","front-end","fullstack-development","jwt-authentication","nextjs","python","typescript"],"created_at":"2024-12-06T04:12:08.249Z","updated_at":"2025-10-23T14:45:41.109Z","avatar_url":"https://github.com/Fingertips18.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](assets/banner.png)\n\n# 🛠️ Junior Full-Stack Exam Project: Next.js \u0026 Flask\n\nThis project is a full-stack web application developed as part of a junior full-stack developer exam. It features a Next.js frontend, a Flask backend, and implements CRUD operations with JWT-based authentication.\n\n## 📚 \u003ca name=\"table\"\u003eTable of Contents\u003c/a\u003e\n\n- 🔧 [Technologies Used](#tech-used)\n- ✨ [Features](#features)\n- 📖 [Setup Instructions](#setup)\n- 🐍 [Backend (Flask)](#backend)\n- ⚛️ [Frontend (Next.js)](#frontend)\n- 🔑 [Environment Variables](#env)\n- 🚀 [Running the Application](#run-app)\n- 📡 [API Endpoints](#api)\n- 🔒 [Authentication](#auth)\n- 🤝 [Contributing](#contributing)\n- 📜 [License](#license)\n\n## 🔧 \u003ca name=\"tech-used\"\u003eTechnologies Used\u003c/a\u003e\n\n- **Frontend**: Next.js (React) ⚛️\n- **Backend**: Flask (Python) 🐍\n- **Database**: SQLite 🗄️\n- **Authentication**: JWT (JSON Web Tokens) 🔐\n\n## ✨ \u003ca name=\"features\"\u003eFeatures\u003c/a\u003e\n\n- **🔒 User Authentication**: Sign-up, login, and JWT-based authentication.\n- **📝 CRUD Operations**: Create, Read, Update, and Delete operations for the application’s data models.\n- **📱 Responsive UI**: Developed using React components.\n- **📡 API**: RESTful API built with Flask.\n\n## 📖 \u003ca name=\"setup\"\u003eSetup Instructions\u003c/a\u003e\n\n### 🐍 \u003ca name=\"backend\"\u003eBackend (Flask)\u003c/a\u003e\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/Fingertips18/junior-fullstack-exam.git\n   cd your-repo/backend\n   ```\n\n2. **Create a virtual environment and install dependencies**:\n\n   ```bash\n   py -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   pip install -r requirements.txt\n   ```\n\n3. **Set up environment variables. Create a `.env` file in the backend directory:**:\n\n   ```bash\n   SECRET_KEY=your-secret-key\n\n   ADMIN_USERNAME=Administrator\n   ADMIN_EMAIL=admin@example.com\n   ADMIN_PASSWORD=password123\n\n   TEST_USERNAME=test\n   TEST_EMAIL=test@example.com\n   TEST_PASSWORD=password123\n   ```\n\n4. **Run the backend server**:\n   ```bash\n   py main.py\n   ```\n\n### ⚛️ \u003ca name=\"frontend\"\u003eFrontend (Next.js)\u003c/a\u003e\n\n1. **Navigate to the frontend directory**:\n\n   ```bash\n   cd ../frontend\n   ```\n\n2. **Install dependencies**:\n\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables. Create a `.env.local` file in the frontend directory:**:\n\n   ```bash\n   BASE_URL=http://localhost:5000  # Adjust the backend URL if necessary\n   SECRET_KEY=your-secret-key\n   ```\n\n4. **Run the frontend server**:\n   ```bash\n   npm run dev\n   ```\n\n## 🔑 \u003ca name=\"env\"\u003eEnvironment Variables\u003c/a\u003e\n\nThe following environment variables should be set:\n\n- **Backend** (`.env`):\n\n  - `SECRET_KEY`: Secret key for JWT encryption.\n\n  - `ADMIN_USERNAME`: Use for testing admin username.\n  - `ADMIN_EMAIL`: Use for testing admin email.\n  - `ADMIN_PASSWORD`: Use for testing admin password.\n\n  - `TEST_USERNAME`: Use for testing test user username.\n  - `TEST_EMAIL`: Use for testing test user email.\n  - `TEST_PASSWORD`: Use for testing test user password.\n\n- **Frontend** (`.env.local`):\n\n  - `BASE_URL`: URL of the Flask API.\n\n  - `SECRET_KEY`: Ensures that the data within the token has not been tampered with and confirms the authenticity of the token/user.\n\n## 🚀 \u003ca name=\"run-app\"\u003eRunning the Application\u003c/a\u003e\n\n- **Backend**: `py main.py` or `flask run`\n\n- **Frontend**: `npm run dev`\n\n- Visit `http://localhost:3000` for the frontend and `http://localhost:5000` for the backend.\n\n## 📡 \u003ca name=\"api\"\u003eAPI Endpoints\u003c/a\u003e\n\n- **Root**:\n\n  - `GET /`: The root of the server\n\n  - If no `token` is found, a `sign in form` will be show\n\n- **Authentication**:\n\n  - `POST /sign-up`: Register a new user.\n\n  - `POST /sign-in`: Authenticate user and receive JWT.\n\n  - `POST /refresh`: Refresh JWT.\n\n- **Item CRUD Operations**:\n\n  - `GET /api/items`: Retrieve all items.\n\n  - `POST /api/items`: Create a new item.\n\n  - `PUT /api/items/:id`: Update an existing item.\n\n  - `DELETE /api/items/:id`: Delete an item.\n\n- **User Operations** (for testing purposes)\n\n  - `GET /api/users`: Retrieve all users\n\n  - `DELETE /api/users/:id`: Delete a user\n\n## 🔒 \u003ca name=\"auth\"\u003eAuthentication\u003c/a\u003e\n\nThis project uses JWT for secure authentication. Tokens are stored in cookies with `HttpOnly` and `SameSite` attributes for enhanced security.\nBoth the `frontend` and `backend` handle the verification and expiration of the token.\n\n## 🤝 \u003ca name=\"contributing\"\u003eContributing\u003c/a\u003e\n\nFeel free to fork this repository and contribute by submitting a pull request. All contributions are welcome!\n\n#### 🧑‍💻 Contributors\n\n\u003ca href=\"https://github.com/Fingertips18/junior-fullstack-exam/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=Fingertips18/junior-fullstack-exam\" /\u003e\n\u003c/a\u003e\n\n_Ghian Tan_ @ _Fingertips_ ([Github](https://github.com/Fingertips18))\n\n## \u003ca name=\"license\"\u003e📜 License\u003c/a\u003e\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffingertips18%2Fjunior-fullstack-exam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffingertips18%2Fjunior-fullstack-exam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffingertips18%2Fjunior-fullstack-exam/lists"}