Asperitas is a full stack reddit clone that I wrote to learn more about Node.js, React, and NoSQL databases. The name asperitas comes from a type of cloud. Edit from vscode
- node
- npm
- mongodb
-
Clone this repository
-
Install server dependencies
$ npm install
-
Install client dependencies
$ cd client $ npm install
- Start mongodb locally
$ mongod
- Start the server
$ npm start
- Start the client
$ cd client $ npm start - Browse to
http://localhost:3000/
By default the server will be connected to local mongod server. But if you want to connect a cloud MongoDB create a environment variable called DATABASE_URL and puth MongoDB Cloud URI as its value.
For email handling server is using SendGrid: https://sendgrid.com/
To configure you need to add these environment variables:
- SENDGRID_API_KEY (The API key provided by sendgrid)
- SENDGRID_SENDER (Sender email address of the app)
- SERVER_URL (Complete url of server e.g http://localhost:8080 for properly managing redirections and links)
Make sure mongodb is running before testing the server.
$ npm test$ cd client
$ npm testThis project is made available under the MIT License.