The project was rewritten with Next.js and GraphQL.
Fill free to contribute even small things, I will be very happy with your help.*
- Node.js >= 16
npm
>= 8- MongoDB >= 5.0
- Clone or fork this repository.
- Create or ask someone for
.env
file which contains Firebase keys and other stuff. - Run
npm install
- Run
npm run dev
The app is deployed on Vercel automatically after pushing commits to dev
branch. You can find the app under this link.
The backend API can be found under http://localhost:3000/api/graphql
endpoint.
This project is using schema.ts
, which contains definition of GraphQL schema and prisma/schema.prisma
for defining Prisma database schema.
From the business perspective this project is pretty much obvious. User can create draft posts which he can publish later. Also, everybody can comments posts, like them and share them on social media. There is also a search bar which allows you to search posts by title or content. You can also filter posts by tags.
Project is currently under development, so there is a lot of things to do.
Also, there is no strict business rules which we are going to achieve, so fill free to propose your ideas and visions.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
P.S. Sometimes I'm asking myself, why did I choose Next.js alongside with GraphQL for this project? Isn't it easier to use getServerSideProps
and etc with Prisma helpers? Idk. I just wanted to try something new.