Skip to content

Repository Structure

Eugenia Chen edited this page Nov 10, 2020 · 2 revisions

Client (/client)

constants.js

This file exports base_url that sets the base url for endpoints.

/public

Contains static images and pages. /imgs has all the images for the website. /newsletterarchive has the HTML files for all WECE newsletters.

/pages

Contains the pages of the website.

/components

Contains the React components used to build pages.

/styles

Contains the css files for each of the pages and components.

/data

Contains static data used to populate pages.

/stories

Contains stories used for developing components and viewing with Storybook.

Server (/api)

server.js

This is the file that starts the custom Express server for the WECE website. All routes are served out of /api.

/database

Inside is the setup for the MongoDB database.

/routes

This folder contains all routes for the server where routes are served from /api/{route_name}.