- Clone the repository:
git clone https://github.com/hcccecit/youth-and-education-web.git
- Change into the directory:
cd youth-and-education-web
- Install dependencies:
npm install
- Change to mock-backend directory:
cd mock-backend
- Install dependencies for mock-backend:
npm install
- Change back to root directory:
cd ..
- Start Application:
npm start
- Navigate to
localhost:4200/yande/home
on a browser to view the webapp
Always run npm install
after pulling latest code from GitHub.
- Update the API Specification at
swagger.json
- Make sure you have
swagger-codegen
cli installed on your computer - Delete old contents in the mock-backend directory
rm -rf mock-backend && mkdir mock-backend
- Generate mock-backend
swagger-codegen generate -i swagger.json -l nodejs-server -o ./mock-backend/
- Change to mock-backend directory:
cd mock-backend
- Install dependencies for mock-backend:
npm install
- Run mock-server:
npm start
- Navigate to
localhost:8080/docs
on a browser to view the APIs on Swagger UI - Change back to root directory:
cd ..