+ Web development technologies have evolved at an incredible clip over the past few years. +
+Introducing RealWorld.
+It's a great solution for learning how other frameworks work.
+diff --git a/.env b/.env new file mode 100644 index 0000000..bbfc196 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +BASE_URL = / + +API_HOST = https://conduit.productionready.io diff --git a/FRONTEND_INSTRUCTIONS.md b/FRONTEND_INSTRUCTIONS.md new file mode 100644 index 0000000..c09084c --- /dev/null +++ b/FRONTEND_INSTRUCTIONS.md @@ -0,0 +1,529 @@ +> *Note: Delete this file before publishing your app!* + +### Using the hosted API + +Simply point your [API requests](https://github.com/gothinkster/realworld/tree/master/api) to `https://conduit.productionready.io/api` and you're good to go! + +### Routing Guidelines + +- Home page (URL: /#/ ) + - List of tags + - List of articles pulled from either Feed, Global, or by Tag + - Pagination for list of articles +- Sign in/Sign up pages (URL: /#/login, /#/register ) + - Uses JWT (store the token in localStorage) + - Authentication can be easily switched to session/cookie based +- Settings page (URL: /#/settings ) +- Editor page to create/edit articles (URL: /#/editor, /#/editor/article-slug-here ) +- Article page (URL: /#/article/article-slug-here ) + - Delete article button (only shown to article's author) + - Render markdown from server client side + - Comments section at bottom of page + - Delete comment button (only shown to comment's author) +- Profile page (URL: /#/profile/:username, /#/profile/:username/favorites ) + - Show basic user info + - List of articles populated from author's created articles or author's favorited articles + +# Styles + +Instead of having the Bootstrap theme included locally, we recommend loading the precompiled theme from our CDN (our [header template](#header) does this by default): + +```html + +``` + +Alternatively, if you want to make modifications to the theme, check out the [theme's repo](https://github.com/gothinkster/conduit-bootstrap-template). + + +# Templates + +- [Layout](#layout) + - [Header](#header) + - [Footer](#footer) +- [Pages](#pages) + - [Home](#home) + - [Login/Register](#loginregister) + - [Profile](#profile) + - [Settings](#settings) + - [Create/Edit Article](#createedit-article) + - [Article](#article) + + +## Layout + + +### Header + +```html + + +
+ ++ Have an account? +
+ + + + ++ Web development technologies have evolved at an incredible clip over the past few years. +
+It's a great solution for learning how other frameworks work.
+With supporting text below as a natural lead-in to additional content.
+With supporting text below as a natural lead-in to additional content.
+