An API with RESTful routes, authentication for the Mern-foods full-stack application.
- Node.js
- Express.js
- TypeScript
- MongoDB
- Mongoose ODM
- Hosted on Heroku
- RESTful API architecture
- Full CRUD operations for restaurants, foods, reviews, and categories
- Role-based access control (User / Admin)
- Stripe payment handling
- Error handling for API endpoints
MONGODB_URI=mongodb+srv://<user>:<password>@<cluster>/<db>?retryWrites=true&w=majority
STRIPE_SECRET_KEY=your_stripe_secret_key- GET /categories
- GET /restaurants
- GET /foods
- POST /payment-intent
git clone https://github.com/Gilson96/react-foods_api.git
cd react-foods_api
npm install
# Create environment files and fill in your credentials
touch .env.development
touch .env.test
# Start the development server
npm run devContact
LinkedIn: www.linkedin.com/in/gilson-de-almeida Email: grafael99@gmail.com