If you're using Windows :
cd backend
npm install
npm start
If you're using UNIX/MacOS :
cd backend
npm install
npm start
NOTE : We are also uploading a postman collection to make it easier to test the APIs in the root folder of the project
If you're using Windows :
cd pennstagram
npm install
npx eslint -c ..\pennstagram\.eslintrc.js ..\penstagram\ --fix
If you're using UNIX/MacOS :
cd pennstagram
npm install
npx eslint -c ../pennstagram/.eslintrc.js ../penstagram/ --fix
After the above command run
npm start
- Start Json server:
json-server --watch db.json --port 3001
- Run jest ui test:
npm run test
- Please use default email "[email protected]"
- Please use default password "1"
- Enter user first name, last name, email address, and password.
- Press submit.
- Json server store thee new user data in the database (you can login with this email and password, however, in order to show the deliverables, you would be directed into our default user's account)
- All endpoints call functions are in api.js.
- Mock API file (Json server) is db.json.
- For homework2, when we uplpoad videos, we use templorary urls instead of real urls in json server for backend mocking. Therefore, when you upload the second videos, you might not see the previous video that you uploaded. This is because the first video's url's life cycle has been terminated.
Solution: In the future, we will be storing images and videos in real servers, so the urls will always be accessible and the issue will be resolved. - For homework3, when clicking the @mention, it will redirect to other user's page.
Photo&Video-sharing Social Network APP - UI & Architecture Design (HW1)
Wiki page link: https://github.com/cis557/project---design-hw1-group-22/wiki/Team-Agreement
Wiki page link: https://github.com/cis557/project---design-hw1-group-22/wiki/User-Story-List-Page
Google Doc link: https://docs.google.com/document/d/e/2PACX-1vTQdduE0BEQMDTbNsS40pwThslfC3pU5uywWRwT5ympwhxBjWvMZue651eemgAW4ohP0LrjVgkeXZs7/pub
Figma link: https://www.figma.com/file/HnAwGa07uomcslR8ZbAGOS/Homework1-Wireframes?node-id=93%3A536
SwaggerHub link: https://app.swaggerhub.com/apis/HedgeHog-Head/pennstagram-api/1.0.0