Compare commits
3 Commits
feature/fu
...
41846a6eb6
| Author | SHA1 | Date | |
|---|---|---|---|
| 41846a6eb6 | |||
| b04db0b06c | |||
| 3ebcec2b43 |
14
.gitignore
vendored
14
.gitignore
vendored
@@ -4,9 +4,13 @@ node_modules/
|
|||||||
# Build output
|
# Build output
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
|
.next/
|
||||||
|
out/
|
||||||
|
|
||||||
# Environment
|
# Environment / secrets — never commit
|
||||||
.env
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
.env.local
|
.env.local
|
||||||
.env.production
|
.env.production
|
||||||
.env.*.local
|
.env.*.local
|
||||||
@@ -25,9 +29,5 @@ Thumbs.db
|
|||||||
# Logs
|
# Logs
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
# Testing
|
yarn-error.log*
|
||||||
coverage/
|
|
||||||
|
|
||||||
# Vite
|
|
||||||
*.local
|
|
||||||
|
|||||||
21
README.md
21
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)
|
# 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.
|
The frontend application for the EnCoach Adaptive Learning Platform, serving UTAS university students and freelance learners across IELTS, Mathematics, and IT courses.
|
||||||
|
|||||||
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