This is a Reddit-Clone (a Boilerplate for my Future Project includes all the technologies I will use in my projects).
- Clone the repository:
git clone https://github.com/aniketmandloi/reddit-clone.git
- Change the directory to Project:
cd reddit-clone
This template provides a minimal setup to get Node.js working with Express and GraphQL.
- Install Postgres in your computer: https://www.postgresql.org/download/
- Create a database:
createdb redditclone
- Run the Migration:
npx mikro-orm migration:create
only if you want to see cookie saved on your local environment
- Install redis in your computer: https://redis.io/download or using brew:
brew install redis
- Test redis installation:
redis-server
- Start redis:
brew services start redis
- After usage stop redis server:
brew services stop redis
- Change the directory to server:
cd server
- Install dependenciec:
npm install
ornpm i
- Run the client:
npm run dev