
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
create-react-serve
Advanced tools
A backend API with authentication built with ReactServe - a React-style framework for building APIs with JSX.
npm install
# Generate Prisma client
npm run db:generate
# Push the schema to the database
npm run db:push
# (Optional) Seed the database
npm run db:seed
npm run dev
Your API will be running at http://localhost:4000
POST /auth/signup - Register a new userPOST /auth/login - Login and get JWT tokenGET /users - List all usersGET /users/:id - Get user by IDGET /auth/me - Get current user profilePUT /auth/profile - Update profileTo access protected routes, include the JWT token in the Authorization header:
Authorization: Bearer <your_jwt_token>
curl -X POST http://localhost:4000/auth/signup \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"name": "John Doe",
"password": "securepassword123"
}'
curl -X POST http://localhost:4000/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "securepassword123"
}'
curl http://localhost:4000/auth/me \
-H "Authorization: Bearer <your_jwt_token>"
src/
index.tsx # Main application file
config.ts # Configuration and Prisma client
auth.ts # Authentication utilities
middleware.tsx # Auth middleware
routes/
auth.tsx # Auth routes (signup, login, me, profile)
users.tsx # User routes (list, get by id)
prisma/
schema.prisma # Database schema
seed.ts # Database seeding script
Create a .env file in the root directory:
DATABASE_URL="file:./dev.db"
JWT_SECRET="your-super-secret-jwt-key-change-this-in-production"
PORT=4000
npm run dev - Start development server with hot reloadnpm run build - Build the applicationnpm run start - Start production servernpm run typecheck - Run TypeScript type checkingnpm run db:generate - Generate Prisma clientnpm run db:push - Push schema changes to databasenpm run db:migrate - Create and run migrationsnpm run db:studio - Open Prisma Studionpm run db:seed - Seed the database with sample dataFAQs
CLI tool for bootstrapping new ReactServe applications
The npm package create-react-serve receives a total of 0 weekly downloads. As such, create-react-serve popularity was classified as not popular.
We found that create-react-serve demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.