This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
69 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,17 @@ | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
# USACS Hacker Badge | ||
|
||
## Available Scripts | ||
### Introduction | ||
For some developers, it's impractical to invest large amounts of time and effort into crafting a professional portfolio website. However, it's still important that developers and job candidates have a hub that's easily accessible by recuiters, showcasing their work. | ||
|
||
In the project directory, you can run: | ||
The objective of the USACS Hacker Badge project is to create that hub. Given the login credentials to servies including a developers body of work, including Github and Devpost, Hacker Badge will generate a hub for recruiters to view. Additionally, the web app will generate physical QR Code linking to the portfolio so that job candidates can easily share their work with recruiters. | ||
|
||
### `npm start` | ||
### Services | ||
We're planning to use **Github** and **Devpost** as services to scrape projects for the generated portfolio. We might add more in the future, but these should work fine for now. | ||
|
||
Runs the app in the development mode.<br> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
### Getting Service Content | ||
Devpost does not have an API that we can use to scrape data from. Github, however, has a dedicated Rest API for accessing user data. Since we'll only be scraping ***public*** information, we may scarpe data from Github as well, instead of using the Rest API. | ||
|
||
The page will reload if you make edits.<br> | ||
You will also see any lint errors in the console. | ||
That's it for now! | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.<br> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.<br> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.<br> | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
|
||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
|
||
### Deployment | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
|
||
### `npm run build` fails to minify | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify | ||
### Contributors | ||
Sam Olagun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# API Reference | ||
|
||
## Introduction | ||
**GET** — `/api/v1/` | ||
|
||
The api is mounted on the `/v1/` subroute of `/api/`. This is version **1**. Mouting the API onto `v1` versus mounting it directly onto `/api/` makes transitioning between different versions much easier. | ||
|
||
## Authentication | ||
**POST** — `/api/v1/auth/login` | ||
This is the login method. It takes in a json body containing `email` and `password` properties. When sucessfull, it should return a json containing a `token` and a `success` property. | ||
|
||
**POST** - `/api/v1/auth/signup` | ||
Login method. Takes in a email, username, and password. Returns success and token | ||
|
||
**POST** `/api/v1/auth/verifyEmail` | ||
Login method. Takes in a email, username, and password. Returns success and token | ||
|
||
`POST` `/api/v1/auth/verifyUsername` | ||
Login method. Takes in a email, username, and password. Returns success and token | ||
|
||
`POST` `/api/v1/auth/deleteUser/` | ||
Login method. Takes in a username and password. Returns success and token | ||
|
||
## User | ||
|
||
`POST` `/api/v1/auth/login` | ||
Login method. Takes in a email (or username) and password. Returns success and token | ||
|
||
`POST` `/api/v1/auth/signup` | ||
Login method. Takes in a email, username, and password. Returns success and token | ||
|
||
`POST` `/api/v1/auth/verifyEmail` | ||
Login method. Takes in a email, username, and password. Returns success and token | ||
|
||
`POST` `/api/v1/auth/verifyUsername` | ||
Login method. Takes in a email, username, and password. Returns success and token | ||
|
||
`POST` `/api/v1/auth/deleteUser/` | ||
Login method. Takes in a username and password. Returns success and token | ||
|
||
## Services | ||
|
||
`GET` `/api/v1/services/body/:service/:projectName` | ||
Login method. Takes in a username and password. Returns success and token | ||
Servies. Github .Devpost. | ||
returns a list of projects as a json array, has body, project name, etc | ||
|
||
`GET` `/api/v1/services/previews/:service` | ||
Login method. Takes in a username and password. Returns success and token | ||
Servies. Github .Devpost. | ||
returns a list of projects as a json array, has body, project name, etc |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import './index.css'; | ||
import App from './App'; | ||
import * as serviceWorker from './serviceWorker'; | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import App from "./App"; | ||
|
||
ReactDOM.render(<App />, document.getElementById('root')); | ||
|
||
// If you want your app to work offline and load faster, you can change | ||
// unregister() to register() below. Note this comes with some pitfalls. | ||
// Learn more about service workers: https://bit.ly/CRA-PWA | ||
serviceWorker.unregister(); | ||
ReactDOM.render(<App />, document.getElementById("root")); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.