psql -U postgres
CREATE DATABASE smartmsg_db;
\q
cd backend
npm install
cp .env.example .env
# Edit .env with your DB password and Africa's Talking keys
npm run migrate
npm run dev
cd frontend
npm install
npm start
- Push this folder to GitHub
- Go to railway.app → New Project → Deploy from GitHub
- Add PostgreSQL plugin
- Set env variables in Railway dashboard
- Get your live link!