Helo my friends, here is the back of my 'FullStackOverflow Developer' project. In this project, i wanted to create an API where you can singin, login send and get questions.
To use this API you have to call the routes in the front, like this
Post User: /users
Post Question: /questions
Post Answer: /questions/:id - id = id of the question
Get one Question: /question:id - id = id of the question
Get all Questions without answer: /questions
You can find everything you need to create yout database in the database.sql archive.
There is a env.example archive, in there you will find everything you need to set the connection with your own databse.
Type in your own database informations and change the name of the archive to .env
To start the database, just use the command
npm start
and you should be ready to go.