To get the project running locally,
- Clone this repository by running
git clone https://github.com/bahdcoder/deploying-node-js-book-project.git
- Run
yarn
to install all project dependencies. - Run
yarn dev
to start the development server
- Express.js - The server for handling and routing HTTP requests
- Mongoose - For modeling and mapping MongoDB data to javascript
- @fullstackjs/mail - For sending emails via multiple providers in the application
- Dotenv - Defines environment variables for project using a
.env
file.
server/
- The source code for all server side routes and endpointsclient/
- The source code for all the client side codeserver/config/index.js
- Defines the configuration file from environment variables.env
- Defines environment variables
Users can:
- Register with their name, email and password
- Login with email and password
- Logout of application
- Forget and reset passwords
To create a production build, make sure the NODE_ENV
is set to PRODUCTION
in the .env
file. Then, run yarn build
.
To start project in production, run yarn start