This project aims to be a powerful RESTful implementation of the posts functionality of Facebook, with the major difference that this one is going to the moon ๐๐๐.
It is an ExpressJS-powered Node application backend (server). Hence, you will need a client tool to interact with it.
Please ensure to have the following set up and running:
- Node.js >= v15.14.0
- MySQL >= v8.0.25
- Terminal or Command Line
- Postman (to test our API with)
- SendGrid (for quick, scalable and reliable means of sending emails)
- Create an account with SendGrid, then follow this guide to get your SendGrid API keys
- Create a database in MySQL
- Clone this repo and
cd
into the cloned folder - Run
cp .env.example .env
from the terminal - UPDATE all
DATABASE_*
field in.env
with the appropriate MySQL database details - Run
npm run setup-database
. This script creates the necessary database schema - Run
npm run dev
on the terminal to start the app. The app URL will be displayed on the terminal (e.g.http://localhost:5000
) - Open Postman to interact with the app using the URL gotten in the step above.
Postman documentation version of the API is available here
npm run test