This repository holds the frontend code of meaningfulcode.org.
The full list of projects can be seen at https://github.com/Meaningful-Code/meaningful-projects.
The goal of this website is to promote meaningful and open-source projects looking for new contributors, willing to make a difference. Projects are regrouped in different categories: Health, Education, Environment, Society, and Humanitarian.
Contributors are very welcome, to help us you can:
But you can also...
The project uses:
The rest of the instructions on this page focus on the frontend.
The following steps guide you to setup your environment:
Configure the frontend to use local stub data by creating a .env.local
file containing
REACT_APP_FORCE_API=stub
Run the development server with yarn dev
. You should see:
yarn run v1.22.19
$ next dev
β² Next.js 14.0.4
- Local: http://localhost:3000
- Environments: .env.local
β Ready in 1059ms
Note that the backend (src/app/api
) is not available publicly for security reasons.
Checkout the api
submodule: git submodule update --init
Set the appropriate environment variables in .env.local
and add
MEANINGFUL_DEV=1
Run with yarn dev
.
REACT_APP_FORCE_API
environment variable can be set to
stub
,local
, API expected at http://localhost:3001
,prod
.MEANINGFUL_DEV
forces using localhost
for API endpoints
To test a production build, simply run:
yarn build
npm install -g serve
serve -s build
This project is licensed under GPL-v3.