Basic Reddit clone featuring users and mostly functioning Sub Reddits. For learning/teaching purposes only.
In your Terminal or Command Prompt, run the following at the root of the project directory:
$ npm i --save
- Create a .env file, by renaming the provided sample
- Add the required variables
In your Terminal or Command Prompt, run the following at the root of the project directory to run the server, which will expose the API:
$ npm start
In your Terminal or Command Prompt, run the following at the root of the project directory to run the server, which will expose the API:
$ docker build --tag not-reddit .
In your Terminal or Command Prompt, run the following at the root of the project directory to run the server, which will expose the API:
$ docker run -t -p 80:3000 --env-file ./.env not-reddit
In your Terminal or Command Prompt, run the following at the root of the project directory to run the tests:
$ npm test
In your Terminal or Command Prompt, run the following at the root of the project directory:
$ npm i eslint --save-dev
then run (at the root of the project directory):
$ ./node_modules/.bin/eslint . --fix