Final year University project aiming to increase the participation of beach clean up events by providing an easy-to-use platform for people to find and join events. Provides additional features such as Petitions, Threads and Donation channels.
- Project has been configured and updated to run locally.
- Database has been setup to use MongoDB, make sure check your connection string.
- When running the project for the first time, it will create the database and load default data.
- MapBox GL JS has been integrated for marking and setting locations for events.
- Admins can CRUD Events, Petitions and Threads.
- Users can participate in Events, Petitions and Threads.
- Anonymous users can join events using their email address.
- HTML & CSS has not been optimized for mobile devices.
- ASP.NET core WebApi (API)
- ASP.NET Core WebApp MVC (front-end & back-end)
- MongoDB (database)
Password | |
---|---|
admin@serenemarine.com | 123456 |
- Visual Studio
- Asp.Net
- IIS Express
- Internet Browser (Google Chrome)
- MongoDB Atlas or On-premise MongoDB Locally (Instructions at Steps 2. Setup MongoDB)
- Clone or Fork the repo.
- In the folder, double-click the .sln file to open the solution.
- Set the Solution to startup using Multiple Projects:
- In the Solution Explorer, Right-click the 'Solution SereneMarine' and select 'Properties'
- In the left-menu tab under 'Common Properties' select 'Startup Project'
- Choose 'Multiple startup projects' radio checkbox option.
- Set both projects to Action -> Start. Make sure WebApi starts before the website.
- Make Sure WebApi is above SereneMarine_Web.
- Clean and Rebuild the entire Solution.
- Create an organization
- Create a Project
- Create a Free Shared Cluster
- Add your connection IP Address to IP Access List
- Create a Database User for Your Cluster
- Download MongoDB Community Server
- Run the MongoDB installer
- Follow the MongoDB Community Edition installation wizard and uncheck 'Install MongoD as a Service'.
- Make sure the mongo database server is running
- Locate your MongoDB Server install and double-click the 'mongod.exe' file. This is usually located in
- 'C:\Program Files\MongoDB\Server<version>\bin\mongod.exe'
- Locate your MongoDB Server install and double-click the 'mongod.exe' file. This is usually located in
- In Solution Explorer, drop-down the WebAPI project and double-click the 'appsettings.json' file.
- Under 'UserDatabaseSettings', replace the field value for 'ConnectionString' with your connection string.
- MongoDB Atlas (cloud)
- In your Database Deployments View, click the 'Connect' button for the cluster you created.
- Select 'Connect your application'
- For Driver, select C# /.NET
- For Version, select 2.5 or later
- Make sure 'Include full drive code example' is unchecked.
- Copy the connection string provided.
- MongoDB Atlas (cloud)
- If there is a <password> tag in your connection string, make sure to replace this with your password for the user.
- Follow How-to add url Restrictions to access token and get copy your token.
- In the Solution Explorer, drop-down the SereneMarine_Web project and double-click the 'appsettings.json' file.
- Under 'AppSettings', replace the value for the key 'MapboxAPIkey'.
-
Project does not run both files
- Make sure that for your project selection (next to the Start button), that it is 'Multiple Startup Projects'.
-
No option for 'Multiple Startup Projects'.
- In the Solution Explorer, Right-click the 'Solution Serenemarine' and select 'Properties'
- In the left-menu tab, dropdown Common Properties, select 'Startup Project', and then select 'Multiple startup projects' radio checkbox option.
- Set both projects to Action -> Start.
- Make sure WebApi starts before the website.