Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The Early Ruskin Manuscripts: an archive of the youthful writing of John Ruskin (1819–1900).

License

NotificationsYou must be signed in to change notification settings

seluenglish/erm.selu.edu

Repository files navigation

https://erm.selu.edu

About

The Early Ruskin Manuscripts, 1826–1842 is a project of Southeastern Louisiana University and Humanities Online, both under the direction of the university's Department of English.

All commentary in ERM, including apparatuses, glosses, notes transcripts, and other editorial treatments of the manuscripts is © by David C. Hanson.

Files in this repository are licensed using the MIT license. (SeeLicense).

Staff and Support

https://erm.selu.edu/webpages/staff

Legal

https://erm.selu.edu/webpages/legal

#Developer Note:

##File Structure

src├---app/components|   |---HeadNavigation|   |   |---HeadNavigation.js       #This is where top nav menu is located|   |---App|   |   |---App.js                  # is where you setup new route to catch|   |---News|   |---Footer|   |---NestingComponents|   |   |---Card|   |   |   |---NewsProfile         #Renders news in big card|   |   |   |---NewsThubnail        #Renders mews in small card for grid view|   |   |---PostNews|   |   |   |---PostNews            #Renders form where admin can change form├──-config|   |---constants.js                #Renders dev vs production data ├─

To add any new routes in HeadNavigation

   <NavLink       to='/essays/indices_essay#DRAWINGS'       className='dropdown-item'       onClick={this.handleMenuClick}>{navCopy.drawings}   </NavLink>

To establish a new catch for route --App.js

    <Route        exact        path='/addNews'        component={PostNews}    />

#Backend APi EndPoint

src├---app/components|---server|---|---serverHelpers|---|---components|---|---database|---|---middleware|---|---api|---|---|---index.js                #This is where |---|---|---NewsPortal              #Controler of news portal located|---|---router.js                   # Controllers are registered with the routes

#While Defining a route in backend###make sure that you define route in following order

rootRouter    .use(apiRouter.routes())    /* render error page when problem found */    .get('/getNews', ctx=>getNews(ctx) )    .post('/createNews', ctx=>setNews(ctx) )

###Before the following route or else the app will render a page not api
.get('error', '/oops', renderReactApp)/* render react app for all other routes/.get('react', '/(.)', renderReactApp)

Get the data in post request:

ctx.request.body    would later base his critique of the pathetic fallacy.</p>                             </div>                         </div>                     </body>                 </text>             </TEI>

###Route

/news => getNews/addNews => setNews/getAllUser => userWithPortalAccess

All Files names should have camel case convention

Only use absolute import

About

The Early Ruskin Manuscripts: an archive of the youthful writing of John Ruskin (1819–1900).

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp