#iCode is a search application for developers to search technologies for article, tutorial, and other resource results. For example, a user searches "Angular" and is presented with results from Google, Youtube, GitHub, or Stack Overflow ##Landing Page(not logged in) Users visit landing page to review app description, and may sign up with an email address and password. Upon signing up, user logs in with email and password. ##Main Page(logged in) Components: Search Bar, Search Results Panel, Saved Searches Panel ##APIs Google - custom search API, search term against 'code schools that each "search term" Youtube - return videos, channels, or playlists GitHub- search repositories that use specified technology StackOverflow - search term against tags ##Technologies MongoDb React Express/Node Passport Materialize Axios(api) JQuery ##Database& Authentication User email address and passwords are stored against a unique user id User searches are stored as saved searches against their user id.
This repository is an example fullstack web application using React on the front-end and Express.js as your back-end server. It uses express-stormpath and stormpath-sdk-react to authenticate users, protect your server API, and render default login and registration screens in your React application.
To run this example project on your local computer, you will need to have Node.js installed and a Stormpath tenant account. If you don't have a Stormpath account, sign up for a free account at https://api.stormpath.com/register.
Clone this repository, then using a terminal, navigate to the directory and run the following:
$ npm installYou'll need to Download an API Key Pair from the Stormpath Admin Console, and find the Application Href (also called REST URL) of the Application that you will use for your project. The default application is called "My Application" and you can use that to get started.
Provide the API Key ID, API Key Secret, and Application Href to your environment, with one of these strategies:
Unix Environment Variables:
export STORMPATH_CLIENT_APIKEY_ID=YOUR_ID_HERE
export STORMPATH_CLIENT_APIKEY_SECRET=YOUR_SECRET_HERE
export STORMPATH_APPLICATION_HREF=YOUR_APP_HREFWindows Environment Variables:
set STORMPATH_CLIENT_APIKEY_ID=YOUR_ID_HERE
set STORMPATH_CLIENT_APIKEY_SECRET=YOUR_SECRET_HERE
set STORMPATH_APPLICATION_HREF=YOUR_APP_HREFPlace them in a file named stormpath.yml, in the directory where you run the dev server:
client:
apiKey:
id: YOUR_API_KEY_ID
secret: YOUR_API_KEY_SECRET
application:
href: https://api.stormpath.com/v1/applications/XXXXTo start the server, run this command in the folder:
$ npm startIf the server is able to start with your configuration, you will see this in your terminal:
Stormpath Ready
Application running at http://localhost:3000The application should now be running in your browser at http://localhost:3000.
We're here to help if you get stuck. There are several ways that you can get in touch with a member of our team:
- Send an email to support@stormpath.com
- Open a Github Issue on this repository.
- Join us on our Slack channel: https://talkstormpath.shipit.xyz/