Compare commits
4 Commits
feature/fu
...
6543081011
| Author | SHA1 | Date | |
|---|---|---|---|
| 6543081011 | |||
| 41846a6eb6 | |||
| b04db0b06c | |||
| 3ebcec2b43 |
14
.gitignore
vendored
14
.gitignore
vendored
@@ -4,9 +4,13 @@ node_modules/
|
||||
# Build output
|
||||
dist/
|
||||
build/
|
||||
.next/
|
||||
out/
|
||||
|
||||
# Environment
|
||||
# Environment / secrets — never commit
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
.env.local
|
||||
.env.production
|
||||
.env.*.local
|
||||
@@ -25,9 +29,5 @@ Thumbs.db
|
||||
# Logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
|
||||
# Testing
|
||||
coverage/
|
||||
|
||||
# Vite
|
||||
*.local
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
23
README.md
23
README.md
@@ -1,3 +1,24 @@
|
||||
# EnCoach Frontend — v2
|
||||
|
||||
## Branching Workflow
|
||||
|
||||
This repo is connected to the staging server via a Git post-receive hook.
|
||||
**All deployment is automatic — but only after code review approval.**
|
||||
|
||||
### How to contribute
|
||||
|
||||
1. Never push directly to `main` — branch protection will block it.
|
||||
2. Push your changes to your feature branch (e.g. `feature/full-frontend-v1`)
|
||||
3. Open a Pull Request on Gitea targeting `main`
|
||||
4. Request review from **devops (Talal)**
|
||||
5. Once approved and merged, the staging server rebuilds and redeploys automatically.
|
||||
|
||||
### Environment
|
||||
|
||||
The `.env` file is **not committed**. It lives only on the staging server at `/opt/encoach/frontend-v2/.env`.
|
||||
|
||||
---
|
||||
|
||||
# EnCoach — Adaptive Learning Platform (Frontend)
|
||||
|
||||
The frontend application for the EnCoach Adaptive Learning Platform, serving UTAS university students and freelance learners across IELTS, Mathematics, and IT courses.
|
||||
@@ -115,4 +136,4 @@ Authentication uses JWT tokens stored in `localStorage`, with automatic 401 inte
|
||||
|
||||
## License
|
||||
|
||||
Proprietary — EnCoach Platform. All rights reserved.
|
||||
Proprietary — EnCoach Platform. All rights reserved.
|
||||
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
frontend:
|
||||
build: .
|
||||
image: encoach-frontend:latest
|
||||
container_name: encoach-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
env_file: .env
|
||||
Reference in New Issue
Block a user