A database portal for Plant It Again, a nonprofit committed to creating exciting careers for adults with developmental and intellectual disabilities while recycling drought tolerant plants back into local communities. This web app aims to help streamline business operations for PIA such as managing programs, keeping track of students, and generating billing reports.
Before starting development, make sure you have these tools installed:
- Node.js - this is our JS runtime
- Npm - this is our package manager
- Postman - helpful for testing API routes
- MongoDB Community - necessary if you want to run database locally
- Copy the backend
.env
file into the backend directory (see the google drive) cd backend
- Run
npm install
to install all dependencies - If running the database locally, make sure to start mongod
npm run dev
to start the backend
If this works properly you should see a message in the terminal saying listening on port 4000
- Copy the frontend
.env
file into the frontend directory (see the google drive) cd frontend
- Run
npm install
to install all dependencies - Run
npm run dev
to start development server - Server is started on port 3000. Follow this url and you should see the development page.
Run these commands in the backend
or frontend
directories for linting and formating. Be sure to run these commands before pushing to github.
npm run lint-fix
- fixes all auto-fixable lint errors and reformats codenpm run lint-check
- check all lint errors or code style issues without modifying any files