A simplified driving school app using React on the frontend and Nodejs, Express and MongoDB Atlas on the backend.
-
In a terminal, use “npm start” (for both /backend and /frontend directories)
-
Post new users directly on route '/users' of localhost:3333. The User schema has the follow structure:
{
nome: String,
diaDeMatricula: Date,
admin: true,
cpf: String,
senha: String,
moto: Boolean,
carro: Boolean,
}
- Create a “.env” file in /backend directory, following the structure of “.env.default” file