A transportation management Dashboard.
The dashboard manage:
- Admin Management
- Transportation Means Management
- Trips Management
- Tickets Management
- ReactJS
- Express
- Node
- MongoDB
- Mongoose
Since this project will hold both the client application and the server application there will be node modules in two different places.
Run npm install
in /client
and in /server
Create .env
file in /server
where it contains this following structure:
JWT_SECRET=<your_secret>
MONGO_PASSWORD=<mongodb_password>
MONGO_USER=<mongodb_user>
MONGO_URL=<mongodb_url>
EMAIL=<email_for_nodemailer>
PASSWORD=<password_for_nodemailer>
Go to localhost/auth/register
to add new admin in order to be able to use the app
If I'm missing something, please let me know
In the project directory, you can run:
Runs both the client app and the server app in development mode.
Open http://localhost:3000 to view the client in the browser.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
If deploying to heroku this does not need to be run since it is handled by the heroku-postbuild script
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn how to setup a local MongoDB instance for testing, check out how to Connect to MongoDB.
To learn how to deploy a full-stack web app to heroku, check out this great guide.
To learn React, check out the React documentation.