This is a Next.js project that uses TypeScript and App Router. For styling, we will be utilizing TailwindCSS.
First, clone the project. After, if there are errors, try this command in the terminal: npm i.
To run the project:
npm run devThen open http://localhost:3000 with your browser to see the result.
You can start working with your component by creating a separate file under the appropriate folder (may be specified in the github ticket). To test out your component, import it inside /src/app/(public)/page.tsx. The page auto-updates as you edit the file.
(type)/(issue_number)--(title-separated-with-dash)
EXAMPLE:
- feat/1--setup-theme
- chore/2--upgrade-dependencies
- fix/3--build-errors
public/imageswill store all the images for the projectsrc/app/(public)will contain all the public routessrc/components/pageswill contain all the completed elements of each pagesrc/components/sectionswill contain the sections of componentssrc/components/uiwill contain elements that don't use other components (unless specified)src/datawill contain json files or the likesrc/lib/typeswill contain custom data types/interfaces/classes
Project is already partially connected with backend.
- Clone the backend repository.
- Follow the instructions in the "Production and Frontend Use setup" in the repo's documentation. Note that you'll have to install Docker.
- You have to run the backend and frontend project at the same time.
Note: Projects and Members may appear with incorrect details or logic. It's because the project is still fetching dummy data from the backend and data is not final yet. Incorrect details may include: incorrect filtering of member roles in members page, missing officers in about-us, missing client names in projects, and no dev contributors in project modal.
Duplicate .env.sample file and rename it to .env
You can accomplish this manually or run this command:
For Windows:
copy .env.sample .env
For Linux:
cp .env.sample .envThen ask Kyle Lampa for the values. Replace the values in the .env file
To learn more, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.