Skip to content

๐ŸŽ‰ MERN based Express Backend for the ๐Ÿผ Aston Animal Sanctuary

License

Notifications You must be signed in to change notification settings

Just-Moh-it/Aston-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿผ Aston Animal Sanctuary

Animal Sanctuary Logo

Aston animal Sanctuary is a MERN stack based adoption management system, with the ability to

  • ๐Ÿฆ„ Add animals along with their details, and set them up for adoptions
  • ๐Ÿ‘ฎโ€โ™€๏ธ Have users sign up for the app
  • ๐Ÿผ Users can raise adoption request
  • โœ‰๏ธ Send out email notifications to users on adoption status change.
  • ๐Ÿ‘€ Discover, search for, or filter animals setup for adoption
  • ๐Ÿ˜ƒ Approve/Decline queued adoption requests

...And a lot more features to explore. Run your own instance and see it for yourself.

Tech-Stack ๐Ÿ“ฑ

This application uses:

  • ๐Ÿš… Express Js for handling http traffic.
  • ๐Ÿ€ NodeJS as the runtime
  • ๐Ÿ’ฟ MongoDB as the database, and
  • ๐Ÿ‘ Mongoose as the ORM
  • ๐Ÿ“ค Node-mailer as the email notification client

Created with โค๏ธ and ๐Ÿผ in Delhi, India

Setting up the application ๐Ÿ”Œ

To run your own instance, follow the given steps:

Setup the Environment

# Clone and Change Directory
git clone https://github.com/Just-Moh-it/Aston-Backend

cd Aston-Backend

# Install the dependencies
npm install

Setup MongoDB

If you haven't already installed mongodb, get it here. Then copy the connection string and paste it according to the next step.

Adding an environment file

Rename the .env.example file to .env in the base of the folder and change the values accordingly.

Starting the server

To run the backend server, type in the terminal

npm start

Starting the backend

Once all the above steps occur without any error, start the application using

npm start

You should see a browser window pop up with the following url

https://localhost:3000

This indicates the frontend started successfully. Now you need to create an admin user

Signup the admin account

On the browser instance, click on the Login | Register link at the top, then enter the details you want the admin account to have, and press Register.

Now, you need to open the mongodb database (using the CLI or MongoDb Compass, or Atlas itself if you're hosting the db on MongDb Atlas), and open the users collection. There, you can search for the admin account by the its mail address.

After locating the document in the collection, change the role value from 0 to 1 to handle the user as admin.

Contributing ๐Ÿ˜ƒ

There's a lot that could be imroved in this application. If you want to contribute, visit CONTRIBUTING.md

License ๐Ÿ‘ฉโ€โš–๏ธ

This project is released under the MIT license. For more info, visit LICENSE.md

That's it! ๐ŸŽ‰

If You've successfully started the NodeJS server, the next step is to get the frontend up, and configure it to run with the backend. Visit the frontend here.