| Jeff Lapp | Chris Petito | James Starks | Victor Ngyuen | Joshua Disney | Kayla Crow |
|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| |
|
|
|
|
|
To get the server running locally:
- Clone this repo
- npm install to install all required dependencies
- npm run server to start the local server
- npm run test to start server using testing environment
- Node.js
- Express
- Moment.js
Why did you choose this framework?
- Point One
- Point Two
- Point Three
- Point Four
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/users |
all users | Returns the information for all users. |
| GET | /api/users/:id |
all users | Returns the information for an individual user by ID. |
| POST | /api/users |
all users | Creates a new user. |
| PUT | /api/users/:id |
all users | Updates an existing user by ID. |
| DELETE | /api/users/:id |
all users | Deletes an existing user by ID. |
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/apps/all |
all users | Returns all projects |
| GET | /api/apps?approved=boolean |
all users | Returns all approved or unapproved projects based off of query boolean |
| GET | /api/apps?search=string |
all users | Returns all approved projects where project description or name includes string query |
| GET | /api/apps?approved=boolean&search=string |
all users | Returns all approved projects where approved is equal to boolean and project description or name includes string query |
| GET | /api/apps/:id |
all users | Returns the information for an individual app by ID. |
| POST | /api/apps |
all users | Creates a new app. |
| PUT | /api/apps/:id |
all users | Updates an existing app by ID. |
| DELETE | /api/apps/:id |
all users | Deletes an existing app by ID. |
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/categories |
all users | Returns all categories. |
| POST | /api/categories |
all users | Creates a new category. |
| DELETE | /api/categories/:id |
all users | Deletes an existing category by ID. |
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/tags |
all users | Returns all tags. |
| POST | /api/tags |
all users | Creates a new tag. |
| DELETE | /api/tags/:id |
all users | Deletes an existing tag by ID. |
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/comments |
all users | Returns all comments. |
| POST | /api/comments |
all users | Creates a new comment. |
| DELETE | /api/comments/:id |
all users | Deletes an existing comment by ID. |
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/appsTags |
all users | Returns all app-tag objects. |
| POST | /api/appsTags |
all users | Creates a new app-tag object. |
| DELETE | /api/appsTags/:id |
all users | Deletes an existing app-tag object by ID. |
| Method | Endpoint | Access Control | Description |
|---|---|---|---|
| GET | /api/usersApps |
all users | Returns all user-app objects. |
| POST | /api/usersApps |
all users | Creates a new user-app object. |
| DELETE | /api/usersApps/:id |
all users | Deletes an existing user-app object by ID. |
{
id: INTEGER (auto-increment)
username: STRING
email: STRING
role: STRING
sub_id: STRING
first_name: STRING
last_name: STRING
pictureURL: STRING
}
{
id: INTEGER (auto-increment)
name: STRING
is_approved: BOOLEAN (defaults to false)
description: STRING
hosted_url: STRING
frontend_url: STRING
backend_url: STRING
submitted_at: STRING
approved_at: STRING
display_image: STRING
in_development: BOOLEAN
is_live: BOOLEAN
is_featured: BOOLEAN
category_id: INTEGER (foreign key: categories)
tags: ARRAY (connected to tags table)
}
{
id: INTEGER (auto-increment)
category_name: STRING
}
{
id: INTEGER (auto-increment)
tag_name: STRING
}
{
id: INTEGER (auto-increment)
comment: STRING
app_id: INTEGER (foreign key: apps)
}
{
id: INTEGER (auto-increment)
app_id: INTEGER (foreign key: apps)
tag_id: INTEGER (foreign key: tags)
}
{
id: INTEGER (auto-increment)
user_id: INTEGER (foreign key: users)
app_id: INTEGER (foreign key: apps)
}
getUsers() -> Returns all users
getUserById(id) -> Returns a single user by user ID
addUser(id) --> Creates a new user
updateUser(id, user) -> Updates a single user by ID
deleteUser(id) -> Deletes an existing user by ID
getAllApps() -> Returns all apps in DB with no filters or pagination
getAppsCount(searchParameter, approvedFilter) -> Returns the count of all apps found in DB that match the searchParameter string or approvedFilter boolean
getAppsPerPage(page, searchParameter, approvedFilter) -> Returns set amount of apps at a time (currently 12 apps) and uses approvedFilter parameter to change the is_approved DB query
getAppById(id) -> Returns app by ID
getAppTags(id) -> Returns all tags for a given app
getAppCategory(id) -> Returns category for a given app
getAppComments(id) -> Returns comments for a given app
addApp(app) -> Creates a new app
updateApp(id, app) -> Updates an existing app
deleteApp(id) -> Deletes an existing app
getCategories() -> Returns all categories
addCategory(category) -> Creates a new category
deleteCategory(id) --> Deletes an existing category by ID
getTags() -> Returns all tags
addTag(tag) -> Creates a new tag
deleteTag(id) --> Deletes an existing tag by ID
getComments() -> Returns all comments
addComments(comment) -> Creates a new comment
deleteComment(id) --> Deletes an existing comment by ID
getAppTags() -> Returns all Apps-Tags relationships
addAppTag(app_tag) -> Creates a new App-Tag relationship
deleteAppTag(id) -> Deletes an exsiting App-Tag relationship by ID
getUsersApps() -> Returns all User-App relationships
addUserApp(user_app) -> Creates a new User-App relationship
deleteUserApp(id) -> Deletes an exsiting User-App relationship by ID
In order for the app to function correctly, the user must set up their own environment variables.
create a .env file that includes the following:
* REACT_APP_OAUTH_CLIENT_ID =
* REACT_APP_OAUTH_DOMAIN =
* REACT_APP_CLOUDINARY_URL =
* REACT_APP_CLOUDINARY_UPLOAD_PRESET =
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct. Please follow it in all your interactions with the project.
If you are having an issue with the existing project code, please submit a bug report under the following guidelines:
- Check first to see if your issue has already been reported.
- Check to see if the issue has recently been fixed by attempting to reproduce the issue using the latest master branch in the repository.
- Create a live example of the problem.
- Submit a detailed bug report including your environment & browser, steps to reproduce the issue, actual and expected outcomes, where you believe the issue is originating from, and any potential solutions you have considered.
We would love to hear from you about new features which would improve this app and further the aims of our project. Please provide as much detail and information as possible to show us why you think your new feature should be implemented.
If you have developed a patch, bug fix, or new feature that would improve this app, please submit a pull request. It is best to communicate your ideas with the developers first before investing a great deal of time into a pull request to ensure that it will mesh smoothly with the project.
Remember that this project is licensed under the MIT license, and by submitting a pull request, you agree that your work will be, too.
- Ensure any install or build dependencies are removed before the end of the layer when doing a build.
- Update the README.md with details of changes to the interface, including new plist variables, exposed ports, useful file locations and container parameters.
- Ensure that your code conforms to our existing code conventions and test coverage.
- Include the relevant issue number, if applicable.
- You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
These contribution guidelines have been adapted from this good-Contributing.md-template.
See Frontend Documentation for details on the fronend of our project.





